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 with transaction ME58

Former Member
0 Likes
1,503

Hello SAP:

We are trying to do a Batch Input Session with transaction ME58

(Creating Service Entry Sheets) by using a FrameWork Order.

After the batch input selects the purchase order and mark all

the requisitions related with that order and confirms the selection,

the system calls program SAPLMLSR dynpro 400, where the tab "Basic

Data" appears and the error "Make an entry in all required fields"

(00 055) is displayed. Althought we had put all the obligatory

fields required by the Batch Input in that particular

screen SAPLMLSR - 400 (we also tried with subscreen 410), the fields

indicated in the Batch Input were lost.

It seems the flow control of the Batch Input is lost because of the

error message 00 055.

Thank You - And we will be waiting for Your answer.

Frinee Paredes

Hello SAP:

We are trying to do a Batch Input Session with transaction ME58

(Creating Service Entry Sheets) by using a FrameWork Order.

After the batch input selects the purchase order and mark all

the requisitions related with that order and confirms the selection,

the system calls program SAPLMLSR dynpro 400, where the tab "Basic

Data" appears and the error "Make an entry in all required fields"

(00 055) is displayed. Althought we had put all the obligatory

fields required by the Batch Input in that particular

screen SAPLMLSR - 400 (we also tried with subscreen 410), the fields

indicated in the Batch Input were lost.

It seems the flow control of the Batch Input is lost because of the

error message 00 055.

Thank You - And we will be waiting for Your answer.

Frinee Paredes

8 REPLIES 8
Read only

christian_wohlfahrt
Active Contributor
0 Likes
1,410

Hello Frinee!

Try to run your batch session in mode 'E' (stop on error) or 'A' (online). This should help to get some additional information on what's going on.

In case your problem is more than a missed field (or a wrong conversion of a number), come back and explain your problem in detail.

Regards,

Christian

Read only

Former Member
0 Likes
1,410

Hi,

Maybe you can try to do a recording and check that you have got all the required fields.

seema

Read only

0 Likes
1,410

Hi, Thanks for your replies!

I did record the transaction, and I'm running it from transaction SHDB in visual mode (step by step).

While I'm running the batch input I can see how the batch input flow is broken when the error appears (the data is lost and it doesn't appear the little window with the OKCODE). I think is strange that this error is displayed before any action is taken over the screen where the fields are obligatory.

Thanks again,

Frinee

Read only

0 Likes
1,410

Hi!

I can't follow your steps from ME58 to SAP... program. I must have used a different button, so just generally:

- not every transaction can be used in BDC (e.g. enjoy transactions like ME21N don't work) - then BAPIs should be available as alternative.

- do you have a chance to fill all fields before this error appears (by using a different way through the screens)?

- yes, an error message is end of a BDC. Normally you're kicked out of the transaction with this message (as long as it's not just mandantory field) - if not, then you are probably in a enjoy-transaction

Regards,

Christian

Read only

0 Likes
1,410

Hi Christian!!

The error that is displayed is because of a mandatory field, the problem is that it appears before the screen is displayed, I mean the validation occurs before I can input data.

It's very interesting what you said about enjoy transactions and there might be the problem, a few minutes ago, while debugging transaction ME58, I found that it calls function module MS_SERVICE_ENTRY2, which calls transaction ML81N, which I think is an enjoy sap transaction, I guess I'm in a big trouble because I've already looked for a BAPI and it seems there aren't any.

If you like to reproduce the error you could record transaction ME58 with transaction SHDB,you would need a framework order (FO) for the selection screen and purchase requisitions (PO) created asociated to that FO.

What I want to do with ME58 is to run a job periodically which creates service entry sheets with the FO and PR as input.

Thank you very much!!

Frinee

Read only

0 Likes
1,410

Hi Frinee!

I just don't know, which buttons to push in ME58 to follow your path - but you mentioned some documents.

Purchase requistion: BAPI_REQUISITION_CREATE

Service entriy sheet: BAPI_ENTRYSHEET_CREATE

I don't know, maybe BAPI_SERVICE_GET_DETAIL, BAPI_SERVICE_GET_LIST will help to find necessary data to get correct link for your purchase requisition.

Next step might be purchase order: BAPI_PO_CREATE1.

Otherwise your problem looks more of the general kind: no batch for enjoy transactions.

If you can't find a different way through the fields (e.g. first some header fields without line info, enter, then jumping into a popup 'new entry'...), then don't spend much more time on batch creation - soon there will be a next problem...

Regards,

Christian

Read only

0 Likes
1,410

Hi Christian!!

I definally think batch input is no the way to solve this requirement, I'm trying with BAPI: BAPI_ENTRYSHEET_CREATE.

I think that if I get all the parameters required this BAPI will be the answer!!

Thank so much,

Best regards,

Frinee

Read only

0 Likes
1,410

Can u please tell me the all required parameters of BAPI_ENTRYSHEET_CREATE.

THANKS

CHETAN