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

transferring data from selection field to standard tcode field

vinothkumar_g
Product and Topic Expert
Product and Topic Expert
0 Likes
1,492

Hi All,

How to transfer the data from selection screen field to standard tcode field.

For eg. i have a select option with name s_matnr.

when the user gives the material number and if executes, it should go to tcode

bd10 .

values entered in selection screen- material field should be transformed to tcode BD10 material field.

how to do this.

Regards,

vinoth

Hi All,

How to transfer the data from selection screen field to standard tcode field.

For eg. i have a select option with name s_matnr.

when the user gives the material number and if executes, it should go to tcode

bd10 .

values entered in selection screen- material field should be transformed to tcode BD10 material field.

how to do this.

Regards,

vinoth

11 REPLIES 11
Read only

Former Member
0 Likes
1,273

try this

SET PARAMETER ID 'MAT' field s_matnr.

call transaction BD10.

Read only

Former Member
0 Likes
1,273

hi, You need to have the parameter ID defined for that field. for example in case of bd10,for materialnumber, the parameter id is MAT. Before calling BD10, you use SET PARAMETER ID 'MAT' ,<VALUE>. This value will be transferred to the material number field.

Hope this helps

Krishna

Read only

Former Member
0 Likes
1,273

Hi

Get the parameter id of the field in the tcode to which you wish to pass the data by going to that transaction code, put the cursor on that field and then click f1 and click on technical information, there you will get the parameter id for that field then in your program try like this.

set parameter id 'MAT' field <selection screen field name>.

call transaction <tcode name>.

Regards

Haritha.

Read only

Former Member
0 Likes
1,273

Hi Vinoth ,

There is a command called CALL TRANASACTION , you can use that to call the transaction.

If you look at the documentaion for this command you will see that there is an addition for USING itab . Where you can pass the value of the selection screen elements.

Regards

Arun

Read only

Former Member
0 Likes
1,273

Hi Vinoth Kumar,

You need to use SET parameter statement for that particular field to be available in transaction BD10 .

Regards,

Sudheer

Read only

vinothkumar_g
Product and Topic Expert
Product and Topic Expert
0 Likes
1,273

Hi all,

I given the code like this , but when execution value is not transferring to bd10 - material field.

SELECT-OPTIONS : S_MATNR FOR MARA-MATNR.

SET PARAMETER ID 'MAT' FIELD S_MATNR.

CALL TRANSACTION 'BD10'.

Regards

vinoth

Read only

amit_khare
Active Contributor
0 Likes
1,273

Hi,

use

SET PARAMETER ID 'MAT' FIELD s-matnr-low.

then, CALL TRANSACTION 'BD10'.

Regards,

Amit

Read only

0 Likes
1,273

Hi ,

This will work , but please check how it would behave when you have a number o materials enterd or a range of materials entered.

Reagrds

Arun

Read only

vinothkumar_g
Product and Topic Expert
Product and Topic Expert
0 Likes
1,273

I tried with this below code also, but value is not transferred.

SET PARAMETER ID 'MAT' FIELD s-matnr-low.

then, CALL TRANSACTION 'BD10'.

Read only

0 Likes
1,273

Hi ,

Please try CALL TRANSACTION Using itab.

Refer the documentation og CALL TRANSACTION for more details.

Thanks

Arun

Read only

Former Member
0 Likes
1,273

Hi Vinoth,

Instead of using Call transaction ,Use Submit statement.Transaction BD10 uses program RBDSEMAT.

SUBMIT RBDSEMAT

VIA SELECTION-SCREEN

WITH SELECTION-TABLE <Selection screen fields table>

AND RETURN.

Populate your selection screen fields in an internal table with structure RSPARAMS and pass to the above statement.

Hope this helps.

Regards,

Sudheer