Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

smartform(header text and item text)

Former Member
0 Kudos

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

2 REPLIES 2

Former Member
0 Kudos

tables stxh stxl

for reading use fm read_text

Former Member
0 Kudos
            • 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:)