11-28-2007 5:09 AM
in transcation va02 we can create text for odrer header and items.....we can view
the same in va03......how do we capture these in our main program(smartform)....
actually we take these values in internal table and include this table in s010....than we capture these values but from where to fetch these values(tables)..
if any one has come across same req plz reply
11-28-2007 5:11 AM
12-02-2007 12:11 PM
FOR ITEM_TEXT (FOR MAIN WINDOW,ITEM TEXT)*****
LOOP AT zmit INTO wa_zmit.
CONCATENATE p_vbeln wa_zmit-posnr INTO name1.
PERFORM item_text USING : '0001' ,'0002','Z001','Z002','Z003','Z004' .
ENDLOOP.
CLEAR wa_zmit.
*******END OF ITEM_TEXT
ORM item_text USING pp .
*loop AT zmit into wa_zmit.
*concatenate P_VBELN wa_zmit-posnr into name1.
CALL FUNCTION 'READ_TEXT'
EXPORTING
client = sy-mandt
id = pp
language = lang
name = name1
object = 'VBBP'
ARCHIVE_HANDLE = 0
LOCAL_CAT = ' '
IMPORTING
HEADER =
TABLES
lines = p_lines
EXCEPTIONS
id = 1
language = 2
name = 3
not_found = 4
object = 5
reference_check = 6
wrong_access_to_archive = 7
OTHERS = 8
.
IF sy-subrc NE 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
enjoy:)