*&

---------------------------------------------------------------------*
*& Report YZZDEMO6
*
*&
*
*&---------------------------------------------------------------------*
*&
*
*&
*
*&---------------------------------------------------------------------*
REPORT yzzdemo6

.

DATA : itab TYPE STANDARD TABLE OF vbap INITIAL SIZE 0,
wa TYPE vbap.
*===============================================================================
=============================================================
PARAMETER : p_vbeln TYPE vbeln_va MATCHCODE OBJECT h_t000.
*=============================================================================
*SELECT-OPTIONS : S_VBELN FOR WA-VBELN.
*===============================================================================
*SELECT * FROM VBAP INTO TABLE ITAB WHERE VBELN = P_VBELN.
"====if u put P_VBELN = VBELN ==error==field "P_VBELN" is not recognised.
*SELECT VBELN MATNR FROM VBAP INTO TABLE ITAB WHERE VBELN = P_VBELN.
"ONLY MATNR FIELD IS SHOWING IN LIST SCREEN.???????????????????????????????
?????????????????
*SELECT * FROM VBAP INTO TABLE ITAB UP TO 1 ROWS WHERE VBELN = P_VBELN .
*===============================================================================
==================================================================
*LOOP AT ITAB INTO WA.
*
* WRITE : / WA-VBELN,
*
WA-MATNR,
*
WA-STDAT.
"STDAT IS THERE IN TABLE VBAP,BUT DATA IS NT SHOWING IN LIST SCREEN.?????
?????
*ENDLOOP.
*========select---and--loop(containing--write) commented=====use of-- SELECT SIN
GLE is demonstrated below========================
SELECT SINGLE * FROM vbap INTO wa WHERE vbeln = p_vbeln.
WRITE : / wa-vbeln,
wa-matnr,
"WHERE IS USE OF STANDARD TABLE I
TAB while using this SELECT SINGLE????????????????????????
wa-stdat.
"logic??????????????????????????????????????????????????????????????
"OUTPUT--ONLY DISPLAYING wa-stdat leaving blank_spaces for other two fields.
*===============================================================================
===================================================================
*HOW TO GET THE MATCHCODE OBJECT h_t000 for data_element/domain/field vbeln_va ?
????????????
*SOLUTION--

Sign up to vote on this title
UsefulNot useful