2009 Oct 29 9:24 AM
Hi all,
I used bapi "BAPI_SAG_CHANGE" to update header text and item texts of the Scheduling Agreement as follow:
CALL FUNCTION 'BAPI_SAG_CHANGE'
EXPORTING
PURCHASINGDOCUMENT = p_sanum
TESTRUN = ' '
IMPORTING
EXP_HEADER = s_sahdrrtn
TABLES
RETURN = t_return
ITEM_TEXT = t_saitemtext
HEADER_TEXT = t_saheadertext
.
" Then commit the update
The header text of the SA was updated successfully but when I attempted to open the item text (from Tcode ME33L) the following error occured and prevented to open:
"Plant yyyy does not belong to company code xxxx .Only one Company Code is allowed per PO."
Please suggest me to resolve this.
Thanks,
Khanh
Hi all,
I used bapi "BAPI_SAG_CHANGE" to update header text and item texts of the Scheduling Agreement as follow:
CALL FUNCTION 'BAPI_SAG_CHANGE'
EXPORTING
PURCHASINGDOCUMENT = p_sanum
TESTRUN = ' '
IMPORTING
EXP_HEADER = s_sahdrrtn
TABLES
RETURN = t_return
ITEM_TEXT = t_saitemtext
HEADER_TEXT = t_saheadertext
.
" Then commit the update
The header text of the SA was updated successfully but when I attempted to open the item text (from Tcode ME33L) the following error occured and prevented to open:
"Plant yyyy does not belong to company code xxxx .Only one Company Code is allowed per PO."
Please suggest me to resolve this.
Thanks,
Khanh
2009 Oct 29 10:02 AM
Hi,
This error message comes from an user exit not the standard SAP.
Thanks,
Khanh