on 05-16-2008 9:57 AM
how can i read header text?
ie, i want to read two values that are stored as header text in purchase order.
how can i retrieve that values?
Hi Babu,
The Fm 'READ_TEXT' is used to get the details about a Purchase document number. For example, the Details like the Employee's( to whom the PO number is assigned) nationality, the Organization code, the base salary, the work location, the job grade code, job title will be returned ny this FM. A text is read from the text file or text memory with this function module. It must be described fully by specifying OBJECT, NAME, ID, and LANGUAGE. When header information and text lines have been read successfully, they are transferred to the work areas HEADER and LINES. See the following code... Data : wf_oldpo type THEAD-TDNAME, fs_readhead type THEAD, int_line1 type table of TLINE with header line, CALL FUNCTION 'READ_TEXT' EXPORTING CLIENT = sy-mandt id = 'F01' language = sy-langu name = wf_oldpo " 6360003191 object = 'EKKO' ARCHIVE_HANDLE = 0 IMPORTING HEADER = fs_readhead tables lines = int_line1 EXCEPTIONS ID = 1 LANGUAGE = 2 NAME = 3 NOT_FOUND = 4 OBJECT = 5 REFERENCE_CHECK = 6 WRONG_ACCESS_TO_ARCHIVE = 7 OTHERS = 8. All the details will be there in int_line1 and u can this for copying to new PO number
Hope this helps u.. Reward points if useful Regards, Eshwar.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.