Application Development 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: 

PO Upload through recording

Former Member
0 Kudos

Hello All,

I m writing upload program for PO through recording (SM35). I m facing problem at item level. I have hundred of items to upload. At item level grid there is no button like 'Insert Row'. In actual screen it is done through scroll bars of grid. It generates BDC_Code of Enter/Return. But when I run this recording (or generated program) even in SM35 it doesn't write records more than that of grid rows (visible rows) and gives error message that material group column is not writable. Actually it doesn't consider scroll bar pressing as new record entry in recording and tries to overwrite on last row that is already written. If I give row no greater than that of visible rows, it gives error. I have no problem for Condition entries because 'Insert Row' button is available there.

Please tell me how I should handle this problem in recording?

Regards

Nadeem

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Instead of using recording, you can better use BAPIs. To create a Purchase Order you can use BAPI_PO_CREATE.

Regards,

John.

3 REPLIES 3

Former Member
0 Kudos

Instead of using recording, you can better use BAPIs. To create a Purchase Order you can use BAPI_PO_CREATE.

Regards,

John.

0 Kudos

Hi John,

BAPI_PO_CREATE don't provide option to upload condition data. I didn't find how to link Services with item no. bcoz Service Internal table doesn't have Item No instead it has package no. that is generated internally. however, more than one service item can exists in a PO. Also I want to execute checks that are placed on screen execution. This upload will be used in live environment. Thats why I didn't use this BAPI. Is there any way around for these considerations.

Regards

Nadeem

0 Kudos

Hi Nadeem,

I don't know on what release you are on. But BAPI_PO_CREATE1 does have the possibility of adding conditions. Furthermore, as far as I know, you can use an arbitrary package number just to relate the PO-item and the relevant Services. Just start with '0000000001' for the first PO-item and add 1 for any next item.

The checks executed during screen processing should be the same when executing using a BAPI.

Regards,

John.