2011 Feb 04 7:08 PM
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.
2011 Feb 04 7:52 PM
>
>
> 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.
2011 Feb 04 7:16 PM
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.
2011 Feb 04 7:36 PM
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
2011 Feb 04 7:52 PM
>
>
> 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)
2011 Feb 04 8:31 PM
That was the problem - I had a typo in the popup program name - sorry about posting such an basic problem!
Thanks
Jeremy
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |