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

batch input problem

Former Member
0 Likes
1,543

Hi,

I have made a BAPI for physical inventory. There are standard BAPIs, but the standard ones are not supporting special cable materials in the SAP cable solution. Therefore I have recorded the process in transaction MI04 and used it in my BAPI for the inventory count.

I´m now passing the importing parameters to the batch input data for the dynpro fields on MI04.

Sometimes, some input fields could be grey so they are deactivated for input. Then the message appears, that the field is not ready for input. Therefore I have made an "ENTER" after every field input to proceed with the batch input process.

My problem now is, if I use CALL TRANSACTION with MODE 'A', that I can see all batch input steps, it is working correct. But if I use it with MODE 'N' to supress the display of the batch input steps, it is not working and it seems to stop after the message occured, that one field is not ready for input.

Can anybody tell me what to do now? I need to playback the batch input data in the background, because the BAPI is going to be called from WebDynpro frontend and if a backend dynpro is shown, an exception occures....

Thank You for Your help!

Reward points guaranteed

5 REPLIES 5
Read only

Former Member
0 Likes
771

Check if the grey fields are always constant.... if so, do not pass any value to them. This will supress the error messages and will run smoothly in the background.

Thanks

Read only

0 Likes
771

Hey Rahul,

I don´t know before, if they are grey or not... Therefore I have to ignore the error messages. Is there any way to do it?

Read only

Former Member
0 Likes
771

Hi Arne,

The method you are folowing (Pressing enter in A mode) is not Correct.

Firstly, you follow a manual entering of data through MI04.

Then Record the same transaction using SHDB.

Generate a function module out of the recording using SHDB. MOdify the code slightly to make it work according to your requirement.

Whatever fields that you see as input enabled in the SHDB recording will be input enabled even when you run the custom bapi .

If the fields are dynamically disabled, the recording should also be conditional.

But, as per my understanding the standard BAPIs can do whatever the transaction does. Try with BAPI_MATPHYSINV_COUNT once again .

Regards,

Ravi

Read only

0 Likes
771

Hey Ravi,

I have recorded transaction MI04 by using SHDB, but it was not working, when a field is appaering grey. So I tried to do it with "ENTER" after every entry...

The BAPI_MATPHYSINV_COUNT is only working for standard materials, not for cable materials, because there are different input fields like factor and individual length.

Read only

former_member404244
Active Contributor
0 Likes
771

Hi,

U need to make the grey fields to be editable,then only u can able to inputs to those fields,else u can't do it in background.It will throw error..it is related to configuration...

regards,

nagaraj