cancel
Showing results for 
Search instead for 
Did you mean: 

i need to print the text in secondary window in script

Former Member
0 Kudos

hi all,

how to print the text of purchase order (me22n) in script.

plzz explain with steps

thanks in adv

vidya

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member196280
Active Contributor
0 Kudos

To print/read the text of purchase order we have to use function module "READ_TEXT" it is mainly used to read header text , line item text etc.

Regards,

SaiRam

Former Member
0 Kudos

hi,

i know that read_text, i used it in smartform.

but i don't know how to use it script

plz... tell me in detail..

thanks in adv

vidya

former_member196280
Active Contributor
0 Kudos

Good that you know how to use read_text...

In SAP script used it as shown below, in your script window call subroutine as shown below

Go through this example

Ex.

/: PERFORM <Subroutine name> IN PROGRAM <subroutine prog name>

/:USING &<field name>&

/:CHANGING &<field name1&

/:ENDPERFORM

    • Display &<FIELD NAME1>&

Then create subroutine pool program and you have to write the code.

FORM ><subroutine name> tables int_cond structure itcsy

outt_cond structure itcsy.

data : value(20), value1(20). "do your own declarations

Read int_cond table index 1.

value = int_cond-value.

***Use FM Read text and store the text in value1 and pass it back to SAPscript as shown below

Read outt_cond table index 1.

outt_cond-value = value1.

Modify outt_cond index 1.

ENDFORM.

Just rough idea given above.

Close the thread if your question is answered and reward points to all useful answers.

Regards,

SaiRam

Former Member
0 Kudos

hi

thanks for ur valuable reply.

but what 's the problem is i am modifying predefined script, in that they written the code in for header text in main window.

and in print(driver) prg all r includes nd also i didn't find the write_form to search for that text field.

i think i need to pass the variable in that write_form, nd then in script.

tell me is it correct or not...

thanks nd regards

vidya