cancel
Showing results for 
Search instead for 
Did you mean: 

Batchinput for transaction MB1A

Former Member
0 Kudos

Hi,

I have a report, which is selecting material data from table LQUA (transaction ls24).

After that I´m building a batchinput to call transaction mb1a and book all found data from lqua.

Normally, I have pressed the menu-button "to order..." and then I filled in the found data, like material and amount, and book it with the save-button.

The problem is, when I do it that way, I got the charge-numbers automatically from the SAP-System (and the input field for the charge is grey, so I can´t enter anything).

When I build my batchinput, the entries are often in an different order. So it´s distorted, when it fills in the data on mb1a.

After that, I tried to book the values about batchinput for mb1a in a different way. I pressed enter on the first screen, and then I could enter the whole lines (also the charge numbers), but when I book it then, it is not deleting the reservation data for the material...

So can anybody tell me, how I can build up the batch input for mb1a, that the data is in the right order, and the material/amount values fit to the right charge?

I hope, it´s possible to understand my problem.

Cheers

Message was edited by: Arne Hein

Accepted Solutions (1)

Accepted Solutions (1)

former_member181962
Active Contributor
0 Kudos

HI,

Do the following if you haven't done already.

Do a SHDB recording for MB1a Transaction and generate the code using create program option in

the SHDB transaction.

Declare an internal table with all the fields that are to be entered in the transaction.

Fill the bdcdata atable and call the transaction.

Hope i understood your problem correctly.

Regards,

Ravi

Answers (1)

Answers (1)

Former Member
0 Kudos

Thanks for the fast answer!

The problem is, I have to compare the values in the charge field, SAP gives me, with the values in my internal table and fill in the right data for the right charge. How can I do that?

Do I have to read it while building my bdc? The problem is, I have to sort the internal table in the right order, that my material and amount values fit to the right charge in mb1a.

Thank you