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

Selection screen

Former Member
0 Likes
409

Hallow I wont to do a SELECTION SCREEN with tag mode that connected to the function that I biuled how can I do that that when I choose in the SELECTION SCREEN it do it in the function thankes

SELECTION-SCREEN BEGIN OF BLOCK blk1 WITH FRAME.

PARAMETERS: file_ser LIKE dxfile-filename .

PARAMETERS: file_in LIKE dxfile-filename .

<b>PARAMETERS: mode_opt TYPE ctu_mode DEFAULT 'N'.</b>

SELECTION-SCREEN END OF BLOCK blk1.

LOOP AT itab.

REFRESH messtab.

CLEAR messtab.

REFRESH returen_messege.

CLEAR returen_messege.

CALL FUNCTION 'YHR_VENDOR_BI'

EXPORTING

  • CTU = 'X'

<b>* mode = 'A'</b>

  • UPDATE = 'S'

  • GROUP =

  • USER =

  • KEEP =

  • HOLDDATE =

  • NODATA = '/'

lifnr_001 = itab-company_code

ktokk_002 = 'Z001'

anred_003 = 'Company'

name1_004 = itab-company_name

sortl_005 = itab-company_name

land1_006 = 'IL'

spras_007 = 'HE'

stceg_008 = itab-osek_morsh

IMPORTING

subrc = sucsses_messege

TABLES

messtab = returen_messege.

PERFORM write_message.

1 ACCEPTED SOLUTION
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
385

You would need to uncomment the MODE parameter of your function module and replace the 'A' with your parmaeter field MODE_OPT.

CALL FUNCTION 'YHR_VENDOR_BI'
EXPORTING
* CTU = 'X'
  mode = mode_opt
* UPDATE = 'S'
* GROUP =

Regards,

Rich Heilman

3 REPLIES 3
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
386

You would need to uncomment the MODE parameter of your function module and replace the 'A' with your parmaeter field MODE_OPT.

CALL FUNCTION 'YHR_VENDOR_BI'
EXPORTING
* CTU = 'X'
  mode = mode_opt
* UPDATE = 'S'
* GROUP =

Regards,

Rich Heilman

Read only

raja_thangamani
Active Contributor
0 Likes
385

Try this,

CALL FUNCTION 'YHR_VENDOR_BI'
EXPORTING
 mode = mode_opt
lifnr_001 = itab-company_code
ktokk_002 = 'Z001'
anred_003 = 'Company'
name1_004 = itab-company_name
sortl_005 = itab-company_name
land1_006 = 'IL'
spras_007 = 'HE'
stceg_008 = itab-osek_morsh
IMPORTING
subrc = sucsses_messege
TABLES
messtab = returen_messege.

Raja T

Read only

Former Member
0 Likes
385

thankes solved problem