2008 May 08 10:24 AM
Hi All.
Is there any function module or BAPI by which we can insert or update the PO header text?
Thanks
ther is no BAPI for PO header text
you can use fuction module SAVE_TEXT to save the po header text.
2008 May 08 10:33 AM
ther is no BAPI for PO header text
you can use fuction module SAVE_TEXT to save the po header text.
2008 May 08 10:46 AM
Hi,
Check the following code
select * into corresponding fields of table itab_stxh from stxh where
tdname = po.
loop at itab_stxh.
CALL FUNCTION 'READ_TEXT'
EXPORTING
CLIENT = SY-MANDT
id = itab_stxh-tdid
language = sy-langu
name = itab_stxh-tdname
object = itab_stxh-tdobject
ARCHIVE_HANDLE = 0
LOCAL_CAT = ' '
IMPORTING
HEADER =
tables
lines = wa_text
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 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
loop at wa_text.
MOVE wa_TEXT-TDLINE TO IT_text-TDLINE .
move itab_stxh-tdid to it_text-tdid.
APPEND IT_text .
endloop.
break-point.
write : / itab_stxh-tdid, itab_stxh-tdobject.
endloop.
loop at it_text.
write : / it_text-tdid, it_text-tdline.
endloop.
Regards,
Balaji.
2008 May 08 10:51 AM
| User | Count |
|---|---|
| 6 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |