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

Default value for Text Field Under Basic Tab in MIRO

Former Member
0 Likes
844

Hi,

I need to have a default value for text field under basic data tab in MIRO T CODE

I found MRM_HEADER_DEFAULT BADI but again it doesnot have Text field as exporting

1) Its ok if i get a hard coded default value which would display the moment i enter MIRO

OR

2) It is also ok if enter date fields and hit enter to get the Text FIELD

I had checked lot of BADI but there no methods with Text Exporting as parameters in their signatures

Can anyone tell me how to go about this

Thanks

Venki

1 ACCEPTED SOLUTION
Read only

former_member182371
Active Contributor
0 Likes
524

Hi,

in badi MRM_HEADER_DEFAULT BADI you could do something

via field-symbols e.g.:


IF I_RBKPV-SGTXT IS INITIAL.

  CONSTANTS: c_sgtxt(21) TYPE c VALUE '(SAPLFDCB)INVFO-SGTXT'.
  FIELD-SYMBOLS: <fs_sgtxt> TYPE ANY.
  ASSIGN (c_sgtxt) TO <fs_sgtxt>.
  <fs_sgtxt> = 'YOURDEFAULTVALUE'.    

ENDIF.

Best regards.

1 REPLY 1
Read only

former_member182371
Active Contributor
0 Likes
525

Hi,

in badi MRM_HEADER_DEFAULT BADI you could do something

via field-symbols e.g.:


IF I_RBKPV-SGTXT IS INITIAL.

  CONSTANTS: c_sgtxt(21) TYPE c VALUE '(SAPLFDCB)INVFO-SGTXT'.
  FIELD-SYMBOLS: <fs_sgtxt> TYPE ANY.
  ASSIGN (c_sgtxt) TO <fs_sgtxt>.
  <fs_sgtxt> = 'YOURDEFAULTVALUE'.    

ENDIF.

Best regards.