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

"No batch input data" error for VK11 BDC session

Former Member
0 Likes
2,470

I have a custom program that uses a BDC session to process records through transaction VK11.

We were previously only using one kind of condition type from the main entry screen of VK11; ZTRP.

Requirements now dictate a new condition type that has been setup; ZDPR. This condition type prompts the popup screen for Key Combination. From that popup, we want to select the 3rd radio button, Customer/Material, before moving on to the data-entry screen.

Using the recorder SHDB, I found the popup, and the radio button selection code, and inserted it into the BDC program conditionally (if the condition type was not ZTRP).

The BDC session now errors out, even though my code is just like the recording session. The error message the BDC session gives me is u201C No batch input data for screen SAPLV14A 1000u201D.

Here is my BDC code that I inserted for the popup. Before this is the code for the main screen (unchanged) and after this is the code for the data entry screen (also unchanged). Can someone help me understand what I'm missing if the code I'm entering matches the SHDB recording?


 IF lv_kschl NE 'ZTRP'.

          CALL METHOD lr_bdc->fill_screen               "Popup
            EXPORTING
              im_program  = 'SAPMV14A'
              im_dynpro   = '0100'
              im_dynbegin = 'X'.

          CALL METHOD lr_bdc->fill_data                 "Cursor at Radio Btn
            EXPORTING
              im_field_name  = 'BDC_CURSOR'
              im_field_value = 'RV130-SELKZ(03)'.

          CALL METHOD lr_bdc->fill_data                 "Continue Green Chk
            EXPORTING
              im_field_name  = 'BDC_OKCODE'
              im_field_value = '=WEIT'.

          CALL METHOD lr_bdc->fill_data                 "UN-Select the button
            EXPORTING
              im_field_name  = 'RV130-SELKZ(01)'
              im_field_value = ' '.

          CALL METHOD lr_bdc->fill_data                 "Select the button
            EXPORTING
              im_field_name  = 'RV130-SELKZ(03)'
              im_field_value = 'X'.
ENDIF.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,316

>

>


>  IF lv_kschl NE 'ZTRP'.
> 
>           CALL METHOD lr_bdc->fill_screen               "Popup
>             EXPORTING
>               im_program  = 'SAPMV14A'
>               im_dynpro   = '0100'
>               im_dynbegin = 'X'.
> 
> ENDIF.
> 

The first screen in VK11 is SAPMV13A 0100 and the second selection screen (for radiobutton) is SAPLV14A 0100... As per the code above, you are calling program SAPMV14A instead of SAPLV14 (you have coded 'M' instead of 'L' in your source code above)

I have a custom program that uses a BDC session to process records through transaction VK11.

We were previously only using one kind of condition type from the main entry screen of VK11; ZTRP.

Requirements now dictate a new condition type that has been setup; ZDPR. This condition type prompts the popup screen for Key Combination. From that popup, we want to select the 3rd radio button, Customer/Material, before moving on to the data-entry screen.

Using the recorder SHDB, I found the popup, and the radio button selection code, and inserted it into the BDC program conditionally (if the condition type was not ZTRP).

The BDC session now errors out, even though my code is just like the recording session. The error message the BDC session gives me is u201C No batch input data for screen SAPLV14A 1000u201D.

Here is my BDC code that I inserted for the popup. Before this is the code for the main screen (unchanged) and after this is the code for the data entry screen (also unchanged). Can someone help me understand what I'm missing if the code I'm entering matches the SHDB recording?


 IF lv_kschl NE 'ZTRP'.

          CALL METHOD lr_bdc->fill_screen               "Popup
            EXPORTING
              im_program  = 'SAPMV14A'
              im_dynpro   = '0100'
              im_dynbegin = 'X'.

          CALL METHOD lr_bdc->fill_data                 "Cursor at Radio Btn
            EXPORTING
              im_field_name  = 'BDC_CURSOR'
              im_field_value = 'RV130-SELKZ(03)'.

          CALL METHOD lr_bdc->fill_data                 "Continue Green Chk
            EXPORTING
              im_field_name  = 'BDC_OKCODE'
              im_field_value = '=WEIT'.

          CALL METHOD lr_bdc->fill_data                 "UN-Select the button
            EXPORTING
              im_field_name  = 'RV130-SELKZ(01)'
              im_field_value = ' '.

          CALL METHOD lr_bdc->fill_data                 "Select the button
            EXPORTING
              im_field_name  = 'RV130-SELKZ(03)'
              im_field_value = 'X'.
ENDIF.

4 REPLIES 4
Read only

JL23
Active Contributor
0 Likes
1,316

you wrote:

The error message the BDC session gives me is u201C No batch input data for screen SAPLV14A 1000u201D.

and your source shows:

im_program = 'SAPMV14A'

im_dynpro = '0100'

Is there a typo? or is everything correct what you typed?

Just asking because the message talks about screen 1000, but your BDC has 0100.

Read only

Former Member
0 Likes
1,316

Yes, I'm sorry. The error message is actually "No batch input data for screen SAPLV14A 0100" My original post of the error message had a typo.

My code has the right value in it.

Thanks

Jeremy

Read only

Former Member
0 Likes
1,317

>

>


>  IF lv_kschl NE 'ZTRP'.
> 
>           CALL METHOD lr_bdc->fill_screen               "Popup
>             EXPORTING
>               im_program  = 'SAPMV14A'
>               im_dynpro   = '0100'
>               im_dynbegin = 'X'.
> 
> ENDIF.
> 

The first screen in VK11 is SAPMV13A 0100 and the second selection screen (for radiobutton) is SAPLV14A 0100... As per the code above, you are calling program SAPMV14A instead of SAPLV14 (you have coded 'M' instead of 'L' in your source code above)

Read only

0 Likes
1,316

That was the problem - I had a typo in the popup program name - sorry about posting such an basic problem!

Thanks

Jeremy