Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

BAPI_SAG_CHANGE

Former Member
0 Likes
3,093

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.

2 REPLIES 2
Read only

jdloranger
Participant
0 Likes
1,580

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

Read only

0 Likes
1,580

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.