on 10-13-2009 11:26 AM
HI EXPERTS,
i have one internal table without header line in my program and i looped through it and i called WRITE_FORM FM to write 'DETAIL' Element on script . When i execute program , wa_itab workarea carries values bt it doesnt carry any data while debugging script at the same time . my code is like this:
TYPES : BEGIN OF TY_ITEM,
EBELN TYPE EKPO-EBELN, "PURCHASE ORDER NO.
EBELP TYPE EKPO-EBELP, "ITEM NUMBER OF PURCHASE ORD
LOEKZ TYPE EKPO-LOEKZ,
TXZ01 TYPE EKPO-txz01,
MATNR TYPE EKPO-MATNR, "MATERIAL NO.
WERKS TYPE EKPO-WERKS, "PLANT
MENGE TYPE EKPO-MENGE, "PO QTY.
MEINS TYPE EKPO-MEINS, "UNIT OF MEASUREMENT
MAKTX TYPE MAKT-MAKTX, "MATERIAL DESCRIPTION
END OF TY_ITEM.
DATA: WA_ITEM TYPE TY_ITEM.
DATA: IT_ITEM TYPE TABLE OF TY_ITEM.
loop at it_item INTO WA_ITEM.
CALL FUNCTION 'WRITE_FORM'
EXPORTING
ELEMENT = 'DETAIL'
FUNCTION = 'SET'
TYPE = 'BODY'
WINDOW = 'MAIN'
EXCEPTIONS
ELEMENT = 1
FUNCTION = 2
TYPE = 3
UNOPENED = 4
UNSTARTED = 5
WINDOW = 6
BAD_PAGEFORMAT_FOR_PRINT = 7
OTHERS = 8.
endloop.
In script in MAIN Window ,only i have element called DETAIL , where i write WA_ITEM-EBELN, WA_ITEM-MATNR....like that.
Bt it doesnt display any data .
Plz try to solve this issue.
Thanks,
Saurin Shah
Edited by: Matt on Oct 13, 2009 12:44 PM - removed ALL CAPITALS from the subject and moved to correct forum
By Self
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Check the formats of the main window
/E DETAIL
&wa_item-ebeln&,,&wa_item-matnr ( Use * for data to be displayed)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
please make sure, that your wa_item should be declared Globally.
use '&' before & last in the variable when you printing variables in Script.
eg: &wa_item-werks&,,&wa_item-matnr&
Hope it helps!!
Rgds,
Pavan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Removed ALL CAPITALS from the subject and moved to correct forum
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.