Application Development 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: 

Batch Input and Select Option

Former Member
0 Kudos

Hello,

Please, i have one issue.

I want to do one Batch Input for one standard transaction. In this transaction, exist one select-option and i fill more values.

I generate the SDHB but i have problema with the select-option. How i can simulate enter value in the Select option by code?

Thank you.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi SALHI AMAL,

We can do this. But its a lengthy process.

You have to record by giving multiple selection values and do some changes in that code.

The number of rows in that 'Multiple Selection' dialog is 8 and it is constant, i.e. it won't vary with monitor or screen size.

In my testing,

  
  perform bdc_dynpro      using 'SAPLALDB' '3000'.
  perform bdc_field       using 'BDC_OKCODE'
                                '=ACPT'.

This is the code to just to fill values in 'SELECT SINGLE VALUES' tab.

If i want to fill more than 8 values, the following code will do that,


      perform bdc_dynpro      using 'SAPLALDB' '3000'.
      perform bdc_field       using 'BDC_OKCODE'
                                    '=P+'.

In this, you have to determine, how many times, we have to press 'PAGE DOWN'.

This all regards one tab in that dialog. Still there are 3 dialogs.

Regards,

R.Nagarajan.

4 REPLIES 4

Former Member
0 Kudos

You can use a variant for that purpose.

Let me know if there some problem with that.

-Rajat

Former Member
0 Kudos

Hi ..

Can you message a bit clear.

Regards,

sg

Former Member
0 Kudos

Hi SALHI AMAL,

We can do this. But its a lengthy process.

You have to record by giving multiple selection values and do some changes in that code.

The number of rows in that 'Multiple Selection' dialog is 8 and it is constant, i.e. it won't vary with monitor or screen size.

In my testing,

  
  perform bdc_dynpro      using 'SAPLALDB' '3000'.
  perform bdc_field       using 'BDC_OKCODE'
                                '=ACPT'.

This is the code to just to fill values in 'SELECT SINGLE VALUES' tab.

If i want to fill more than 8 values, the following code will do that,


      perform bdc_dynpro      using 'SAPLALDB' '3000'.
      perform bdc_field       using 'BDC_OKCODE'
                                    '=P+'.

In this, you have to determine, how many times, we have to press 'PAGE DOWN'.

This all regards one tab in that dialog. Still there are 3 dialogs.

Regards,

R.Nagarajan.

0 Kudos

Hello Nagarajan,

Thank you very very much. You have resolved my problem.

Best Regards,

Amal