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

How is bdcdata processed during inbound ORDERS processing?

Former Member
0 Likes
497

A new requirement of our system is to externally assign the sales order item number in SAP. This means I need to override the VBAP-POSNR values assigned in the code that usually assign the 10, 20, 30, etc to the item number with a number from an idoc field.

I am trying to override the bdcdata VBAP-POSNR record with this idoc value and it is not working in every scenario. For a ref to quote order creation scenario the bdcdata record seems to be updated with the following populated in the bdcdata record fields: program = SAPMV45A; dynpro =4001; dynbegin = X; fval = blank.

1) Can you verify if the bdcdata record field VBAP-POSNR is updated from this record in the bdcdata? How?

2) How can I update the bdcdata record vaolue of the VBAP-POSNR in a user exit if it is being updated by the standard SAP code in #1 above?

2 REPLIES 2
Read only

Former Member
0 Likes
455

I don't think you can over-ride the value of VBAP-POSNR which is determined based on the Order Type configuration (VOV8).

Read only

Former Member
0 Likes
455

This document type is configured to externally assign the sales order item number. I have coded the user exit to insert the VBAP-POSNR value into the bdcdata table for the ORDERS edi sales order creation scenario. What I need help with is how to insert the VBAP-POSNR value into the bdcdata table for the ORDERS creation for the ref to quote scenario as the records created in the bdcdata table are not identical for these two scenarios.