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: 

Set default values for mandatory fields in tcode XD01 by using PARAMETER ID

Former Member
0 Kudos
465

Hi all,

I need to fill the mandatory fields for transaction code XD01 by using the parameter id.

I am new to this area can any one tell me the steps which i need to follow.

Regards

Jai

Edited by: Jayanth16 on Mar 30, 2010 9:09 AM

6 REPLIES 6

Former Member
0 Kudos
205

SET PARAMETER ID 'DCN' FIELD rs_selfield-value.

'DCN' : Parameter ID & rs_selfield-value : Value which you want to input.

U will get parameter id when u put cursor on that field and press F1 , in technical description u will find parameter id

or in data element in t-code 'SE11'.

CALL TRANSACTION 'XD01' AND SKIP FIRST SCREEN.

Thanks

Ankesh

Edited by: Ankesh Jindal on Mar 30, 2010 9:16 AM

0 Kudos
205

Hi,

When i open XD01 mandatory fields are filled with default values.

For this whether i need to write a program or something else can do and achecive it.

Regards

Jai

0 Kudos
205

hi,

you can write the BDC for the following and pass the value to mandatory fields.

and then use the call transaction statement.

0 Kudos
205

Hi Jayanth,

See , when you want the value to be populated directly when you open the transaction individuallly you need to create transaction variant in SHD0

if you want to populate the values in XD01, when it is a called tcode from another ztcode or program then you need to follow the steps provided by one of the colleague in the same thread

cheers

S.Janagar

0 Kudos
205

in that case use submit program like below :-

in the selection table enter that default select-option name and in their low and high enter space and append

those value in seltab and call that seltab in SUBMIT statement

DATA: seltab TYPE TABLE OF rsparams,

seltab_wa LIKE LINE OF seltab.

seltab_wa-selname = 'CREDAT'.

  • seltab_wa-sign = 'I'.

  • seltab_wa-option = 'EQ'.

  • seltab_wa-low = space.

  • seltab_wa-high = space.

  • APPEND seltab_wa TO seltab.

  • CLEAR seltab_wa.

  • seltab_wa-selname = 'DOCNUM'.

  • seltab_wa-sign = 'I'.

  • seltab_wa-option = 'EQ'.

  • seltab_wa-low = rs_selfield-value.

  • APPEND seltab_wa TO seltab.

  • CLEAR seltab_wa.

*

  • SUBMIT rseidoc2 WITH SELECTION-TABLE seltab.

    • via selection-screeN .

0 Kudos
205

Hi,

I am not calling the transaction code from any Zprogram or any Ztcode.

When i open the Tcode it has to populate with default values in mandatory fields.

Is there any other way other than creating transaction variant ?

Regards

Jai