cancel
Showing results for 
Search instead for 
Did you mean: 

BAPI_SAG_CHANGE to modify scheduling agreement

Former Member
0 Kudos

Hi,

I need to change item condition values on a scheduling agreement, i'd like to use the bapi BAPI_SAG_CHANGE.

Does anyone know how to do it?

I'm using sap ecc 6.0

Thanks!

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

No one has an idea?

I need to change the prices for the conditions of an item in an existing validity range.

I tried to make a batch input of ME32L but it has problems (actually it's not the way to do it)

I also tried a batch on MEKL but it doesn't support batch inputs properly.

So I tried the BAPI_SAG_CHANGE, part of the new bapi fm which come with ecc6, but I can't make it to work.

Please, I don't know what else to do!

Thanks!

Former Member
0 Kudos

I tried this batch but it doesn't work (well, it actually does work the first time I launch it, then it stops showing the dynpro SAPLV14A 0102):


   1	                                        	    	T	ME32L	BS AA X   F
   2	SAPMM06E	0205	X                                                                                
3	                                        	    	 	BDC_OKCODE	/00
   4	                                        	    	 	RM06E-EVRTN	2324765
   5	SAPMM06E	0220	X                                                                                
6	                                        	    	 	BDC_CURSOR	EKPO-TXZ01(01)
   7	                                        	    	 	BDC_OKCODE	=KO
   8	SAPLV14A	0102	X                                                                                
9	                                        	    	 	BDC_CURSOR	VAKE-DATAB(04)
  10	                                        	    	 	BDC_OKCODE	=PICK
  11	SAPMV13A	0201	X                                                                                
12	                                        	    	 	BDC_OKCODE	=SICH
  13	                                        	    	 	KONP-KBETR(01)	2.580,00
  14	                                        	    	 	KONP-KBETR(02)	2.554,97-

Former Member
0 Kudos

I resolved this by myself. You just have to run a SUBMIT to the report behind MEKL:

SUBMIT rm06k052 TO SAP-SPOOL WITHOUT SPOOL DYNPRO
                WITH i_ekorg = tb_pdc-ekorg
                WITH i_lifnr = tb_pdc-lifnr
                WITH r_evrtn EQ tb_pdc-ebeln
                WITH inwg = space
                WITH simu = space
                WITH schl = st_caus-kschl
                WITH abso = lv_prezzo2
                WITH sign = space
                WITH prix = space
                WITH staf = space
                WITH vdatu = lv_datab
                WITH bdatu = lv_datbi
                AND RETURN .