2016 Sep 29 3:26 PM
HI, I have a problem while using BAPI_SAG_CHANGE. I´ve created 2 Z fields (type CHAR1) in structure CI_EKKODB, which are showen in dynpro 201. If I update them on-line (tx ME32L),everything goes ok, they are updated and the system shows the message 'scheduling agreement xxx changed', But if I use this bapi, it wouldn´t change them. Table RETURN has the following values:
Instance xxx of object type Purchschedagreement has been changed.
Scheduling agreement xxx changed
No message generated for output of purchasing document
I attach the code of the program
Tks on advance.
HI, I have a problem while using BAPI_SAG_CHANGE. I´ve created 2 Z fields (type CHAR1) in structure CI_EKKODB, which are showen in dynpro 201. If I update them on-line (tx ME32L),everything goes ok, they are updated and the system shows the message 'scheduling agreement xxx changed', But if I use this bapi, it wouldn´t change them. Table RETURN has the following values:
Instance xxx of object type Purchschedagreement has been changed.
Scheduling agreement xxx changed
No message generated for output of purchasing document
I attach the code of the program
Tks on advance.
2016 Sep 29 7:21 PM
Maria,
I think you may have some field assignments reversed.
You have...
s_bapi_te_mepoheader-zzconfpl = 'X'.
s_bapi_te_mepoheaderx-zzconfpl = p_zznfre.
It should be...
s_bapi_te_mepoheader-zzconfpl = p_zznfre.
s_bapi_te_mepoheaderx-zzconfpl = 'X'.
Regards,
Justin
2016 Sep 30 11:20 AM
Hi Justin, Tks for your answer.
I have changed it but doesn´´t work
.I ´ve another program which is exactly the same but using BAPI_PO_CHANGE (to change another Z field for the purcharse order) and it works
I don´t know whether the order of the Z fields in structure BAPI_TE_MEPOHEADER MATTERS.
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |