BAPI_RESERVATION_CREATE1 WEMPF 创建预留收货方问题

问题:

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字段值给改掉了,要传入该字段的值才可,默认为空



评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值