on 06-03-2008 8:41 AM
Dear Guru,
Here I have encountered an Issue in time of Sales order printing.
As per our requirement I have to print the "Header Text" details (eg: Special Instruction)" of an Sales order in Order printout form.
But unlike any other field I am not able to find out the table and table fields in case of Header text.
So guru I want to know how i should link that in to my print program so that what ever instruction you are giving in "Special Instruction field " in header text of an Sales order would come into my print program's output.
Hi Saifur Rahaman,
U get the Header Text u need to usde READ_TEXT function Module.
CALL FUNCTION 'READ_TEXT'
EXPORTING
* CLIENT = SY-MANDT
ID = 'PB'
LANGUAGE = 'E'
NAME = TNAME
OBJECT = 'PBPT'
* ARCHIVE_HANDLE = 0
IMPORTING
HEADER = HTEXT
TABLES
LINES = LTEXT
EXCEPTIONS
ID = 1
LANGUAGE = 2
NAME = 3
NOT_FOUND = 4
OBJECT = 5
REFERENCE_CHECK = 6
WRONG_ACCESS_TO_ARCHIVE = 7
OTHERS = 8.
U need to know These four parameters to get the header text from sales order
ID
LANGUAGE
NAME
OBJECT
To know these u need to goto Sales Order transaction VA03
Inside Sales order Menu Path
Goto ---> Header ---> Texts
there u can find the texts
Select the required Text and click on the Details PushButton (Magnifying glass)
u can see the details of the text.(parameters)
For every Text u have these four parameters defined
ID
LANGUAGE
NAME
OBJECT
U need to use these in the READ_TEXT Function Module to get the Text.
Best regards,
raam
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Dear Sir,
I got your point I have to use "READ_TEXT" function module.
But sir i want some clear idea about that these 4 parameters you have mentioned here--
1.ID -
what is an ID and how i should get ID for particular text for eg: "Header Note1". You have given one example "PB"
so in case of "Header Note1" what should be the ID , how to find it??
2.Language -
"E" --- i understood this point.
3.Name -
what is "NAME" which name it is suggesting and in my case what name i should provide here.
4.Object -
in my case what object name i should pass for eg you have passes "PBPT"
and after importing value of these field how i should take these value into a variable ??
Thanks and regards
Saifur Rahaman
Hi Saifur Rahaman,
These are the parameters u need to send to the Function module READ_TEXT.
As I explained u before
Inside Sales order Menu Path
Goto ---> Header ---> Texts
there u can find the texts
Select the required Text and click on the Details PushButton (Magnifying glass) Down.
now u get the Text Editor similar to the SAP Script Text editor.
There Menu Path
Goto ---> Header
Now U get the window Text Header.
Here u can find all four parameters.
Best regards,
raam
Thnx a lot guru I hav solved it as you suggested
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
78 | |
10 | |
9 | |
7 | |
6 | |
6 | |
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.