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 and Select Option

Former Member
0 Likes
2,960

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
Read only

Former Member
0 Likes
1,557

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
Read only

Former Member
0 Likes
1,557

You can use a variant for that purpose.

Let me know if there some problem with that.

-Rajat

Read only

Former Member
0 Likes
1,557

Hi ..

Can you message a bit clear.

Regards,

sg

Read only

Former Member
0 Likes
1,558

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.

Read only

0 Likes
1,557

Hello Nagarajan,

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

Best Regards,

Amal