BAPI_RESERVATION_CREATE1 WEMPF 创建预留收货方问题

时间:2021-05-21 04:37:13

问题:

GoodsRecipient on Reservation Header via BAPI (RKPF-WEMPF)

I've created a program to create reservations usingBAPI_RESERVATION_CREATE1.

The reservation gets created with all the items specifiedin the parameters but there's one field that doesn't gets filled - RKPF-WEMPF(Goods Recipient at header level).

 

Checking the BAPI, the GR is created at item level(RESB-WEMPF) but not at header. If I go to MB22 the GR is blank.

It seems that it can't be donethrough BAPI_RESERVATION_CREATE1 nor can I change it using BAPI_RESERVATION_CHANGE(can only change items).

When creating a reservation (MB21)I can fill the GR and see it in RKPF table.

 

My question is, how can I fill the GR at header?

If not on creation (which I find it strange not to bepossible on the BAPI I've mentioned) is there a BAPI that can change the headerof the reservation?


正确答案 按照 Kannan Nair  打开 Apr 7, 2015 7:38 PM

Hi Carlos,

 

While going through the interface pattern i found it canupdate only for Item level GRs.Try to use the

MB_CHANGE_RESERVATION for the Reservation header levelchange.

 

Check the program MM07RFB0 for more details.

 

Hope it helps.


这个bapi保存的wempf字段是保存到行项目中去了,并没有保存到抬头表中。

调用MB_CHANGE_RESERVATION方法将抬头表的数据修改,注意传入的rkpf内表,有可能会修改掉原来的数据

本人测试的过程中就发现把原来的rsdat字段值给改掉了,要传入该字段的值才可,默认为空