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 Problem - BAPI_PROCORDCONF_CREATE_TT

Former Member
0 Likes
1,002

I am using this BAPI to notify Process Orders.

But I do not make any recording the movement of goods into the table goodsmovements.

Moreover, the table link_conf_goodsmov him the income index of the table goodsmovements that must change.

How can I notify the movement of goods?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
851

Hi Pablo,

I assume that you are creating process order confirmations and corresponding goods movements. BAPIs I am referring are different.

Here are the steps that might help you.

Reward if you find this useful.

1. Call bapi - BAPI_PROCORDCONF_GET_HDR_PROP and pass PROP_GMOV = 'X' and ATHDRLEVELS. This bapi will return the proposals of automatic goods movements. After the execution of this bapi, following tables will be filled up with data

ATHDRLEVELS

GOODSMOVEMENTS

LINK_CONF_GOODSMOV

2. Change ATHDRLEVELS and GOODSMOVEMENTS as per file data

3. Append GOODSMOVEMENTS with components from file.

4. Append LINK_CONF_GOODSMOV with indexes for components

5. Pass these 3 tables to bapi - BAPI_PROCORDCONF_CREATE_HDR. This bapi will create confirmation.

But this will create 2 material documents, one for 101 movement type and other for your movement for ex. 261 (consumption)

Thanks,

Shriram.

2 REPLIES 2
Read only

Former Member
0 Likes
852

Hi Pablo,

I assume that you are creating process order confirmations and corresponding goods movements. BAPIs I am referring are different.

Here are the steps that might help you.

Reward if you find this useful.

1. Call bapi - BAPI_PROCORDCONF_GET_HDR_PROP and pass PROP_GMOV = 'X' and ATHDRLEVELS. This bapi will return the proposals of automatic goods movements. After the execution of this bapi, following tables will be filled up with data

ATHDRLEVELS

GOODSMOVEMENTS

LINK_CONF_GOODSMOV

2. Change ATHDRLEVELS and GOODSMOVEMENTS as per file data

3. Append GOODSMOVEMENTS with components from file.

4. Append LINK_CONF_GOODSMOV with indexes for components

5. Pass these 3 tables to bapi - BAPI_PROCORDCONF_CREATE_HDR. This bapi will create confirmation.

But this will create 2 material documents, one for 101 movement type and other for your movement for ex. 261 (consumption)

Thanks,

Shriram.

Read only

Former Member
0 Likes
851

Thanks Shriram...

I used what you've passed, and I could solve the drawback ...

Thank.