2006 Dec 04 12:21 PM
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
2006 Dec 04 12:25 PM
try this
SET PARAMETER ID 'MAT' field s_matnr.
call transaction BD10.
2006 Dec 04 12:27 PM
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
2006 Dec 04 12:29 PM
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.
2006 Dec 04 12:29 PM
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
2006 Dec 04 12:30 PM
Hi Vinoth Kumar,
You need to use SET parameter statement for that particular field to be available in transaction BD10 .
Regards,
Sudheer
2006 Dec 04 12:32 PM
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
2006 Dec 04 12:33 PM
Hi,
use
SET PARAMETER ID 'MAT' FIELD s-matnr-low.
then, CALL TRANSACTION 'BD10'.
Regards,
Amit
2006 Dec 04 12:36 PM
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
2006 Dec 04 12:36 PM
I tried with this below code also, but value is not transferred.
SET PARAMETER ID 'MAT' FIELD s-matnr-low.
then, CALL TRANSACTION 'BD10'.
2006 Dec 04 12:59 PM
Hi ,
Please try CALL TRANSACTION Using itab.
Refer the documentation og CALL TRANSACTION for more details.
Thanks
Arun
2006 Dec 04 12:48 PM
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