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

HR - No batch input data for screen SAPMP56T 1000 - after using bapi

Former Member
0 Likes
2,136

Hi everybody,

I'm using bapi BAPI_TRIP_CREATE_FROM_DATA to insert a trip. in case something goes wrong, it saves the BIM in SM35. Sometimes the following error occurs when we try to process the generated BIM: "No batch input data for screen SAPMP56T 1000".

Sounds familiar? OSS does not explicitly state screen 1000 when I look for the error.

Hope you can help!

Kind regards

Laurens

Hi everybody,

I'm using bapi BAPI_TRIP_CREATE_FROM_DATA to insert a trip. in case something goes wrong, it saves the BIM in SM35. Sometimes the following error occurs when we try to process the generated BIM: "No batch input data for screen SAPMP56T 1000".

Sounds familiar? OSS does not explicitly state screen 1000 when I look for the error.

Hope you can help!

Kind regards

Laurens

5 REPLIES 5
Read only

former_member226519
Active Contributor
0 Likes
1,414

try to create the trip manually and check if it is SAPMP56T 1000 where you enter the data.

Some infotypes use different dynpros for different countries, subtypes etc.

Read only

Former Member
0 Likes
1,414

I think I found the problem.

Lets assume the bapi had a functional error and generated a BIM for SM35:

When we create a trip using the bapi BAPI_TRIP_CREATE_FROM_DATA, SAP needs to set the employee number in the first field of PR01 (or PR05 for that matter). In case the employee number in the memory id is different than the one we entered in the BIM, it generates the error of screen 1000. When I process the exact BIM again, the memory ID of the employee number is already correct, therefor the BIM can continue and the error will not occur.

Sound like a bug in the BAPI. It should not hang on the first entry while switching to another employee number.

I'll have a look at OSS again.

Cheers!

Laurens

Read only

0 Likes
1,414

Hi,

One option is to use SET MEMORY ID (just before calling the BAPI) and set the value of the field to the same pernr value which will be called inside the BAPI.

regards,

amit m.

Read only

0 Likes
1,414

We do this just before we create a trip with the bapi. In case no functional errors occur within the creation of the trip, all goes well. But the problem occurs when there is a functional error. The bapi creates a BIM in the background so you can process it manually. But when the user tries to process this SM35 BIM, the error could occur because the employee number could have changed. This is a bug of the standard BAPI I think.

Cheers!

Laurens

Read only

0 Likes
1,414

Got it!

I created an enhancement in include LHRTRF04. Here I added the following code to let SAP set the correct employeenumber in the beginning:

PERFORM bdc_dynpro USING trv_prog '1000'.

PERFORM bdc_field USING 'PTP00-PERNR' p_pernr.

PERFORM bdc_field USING 'BDC_OKCODE' '/00'.

After this, SAP can continue with the normal BIM.

Cheers!

Laurens