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 Error

raul_natu
Explorer
0 Likes
484

Hi!

I'm getting this error, and i don't know why it's happening. He in debug do it very well but when i run sm35 i'm getting "No batch input data for screen SAPZ3_RE_AREAS 0200"

    PERFORM open_group.
    LOOP AT it_fac_aux.

      PERFORM bdc_dynpro      USING 'SAPLFV7V' '0100'.
      PERFORM bdc_field       USING 'BDC_CURSOR'
                                    'VIMIMV-BUKRS'.
      PERFORM bdc_field       USING 'BDC_OKCODE'
                                    '=STAM'.
      PERFORM bdc_field       USING 'VIMIMV-BUKRS'
                                    it_fac_aux-comp.
      PERFORM bdc_field       USING 'VIMIMV-SMIVE'
                                    it_fac_aux-contract.

      PERFORM bdc_dynpro      USING 'SAPLFV7V' '0150'.
      PERFORM bdc_field       USING 'BDC_OKCODE'
                                    '=FUSF'.

      PERFORM bdc_dynpro      USING 'SAPLFV7V' '0150'.
      PERFORM bdc_field       USING 'BDC_OKCODE'
                                    '=BT_SETTLEMENT'.
      PERFORM bdc_dynpro      USING 'SAPLZ3_RE_AREAS'
                                    '0200'.

      tab = 1.
      LOOP AT it_fac WHERE comp EQ it_fac_aux-comp
        AND contract EQ it_fac_aux-contract.


        PERFORM bdc_field       USING 'BDC_OKCODE'
                                      '=TC_AREAS_INSR'.
        CLEAR conc.
        CONCATENATE 'IT_AREA_RANGE-AREA_BEG(' tab ')' INTO conc.
        PERFORM bdc_field       USING  conc
                                       it_fac-areaf.

        CLEAR conc.
        CONCATENATE 'IT_AREA_RANGE-AREA_END(' tab ')' INTO conc.
        PERFORM bdc_field       USING  conc
                                       it_fac-areat.

        CLEAR conc.
        CONCATENATE 'IT_AREA_RANGE-FACTOR(' tab ')' INTO conc.
        PERFORM bdc_field       USING  conc
                                       it_fac-factor.
*        PERFORM bdc_field       USING 'BDC_OKCODE'
*                                      '=/00'.


        ADD 1 TO tab.
      ENDLOOP.


      PERFORM bdc_field       USING 'BDC_OKCODE'
                                    '=/BACK'.
      PERFORM bdc_dynpro      USING 'SAPLFV7V' '0150'.
      PERFORM bdc_field       USING 'BDC_OKCODE'
                                    '=SICH'.
      PERFORM bdc_transaction USING 'FOV2'.
    ENDLOOP.
    PERFORM close_group.

thanks,

Raul

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
440

Hi,

Does 'SAPLZ3_RE_AREAS' 0200 refer to a custom screen enhancement?

Maybe you are missing some values in that screen.

Try doing a recording again for the transaction and rewrite your code based on teh recorded program.

Regards,

Subramanian

2 REPLIES 2
Read only

Former Member
0 Likes
441

Hi,

Does 'SAPLZ3_RE_AREAS' 0200 refer to a custom screen enhancement?

Maybe you are missing some values in that screen.

Try doing a recording again for the transaction and rewrite your code based on teh recorded program.

Regards,

Subramanian

Read only

Former Member
0 Likes
440

Hi Raul,

Your message seems to mean that there is one iteration over IT_FAC_AUX where IT_FAC contains no data for the correponding field COMP... Could you please check that?

Best regards,

Samuel