on 09-11-2007 2:14 PM
hi all,
how to print the text of purchase order (me22n) in script.
plzz explain with steps
thanks in adv
vidya
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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
User | Count |
---|---|
83 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.