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

SET PARAMETER ID in calling infotypes

Former Member
0 Likes
1,495

Hello Experts,

i am having difficulty in this part of my enhancement.

i have enhanced an infotype, and i added 1 button there which, when clicked, it should DISPLAY a custom infotype that i have developed.

here's my code:

MODULE user_command_route INPUT.

data: lv_pernr type RP50G-pernr,

lv_infty type RP50G-CHOIC.

CONSTANTS: lc_per(3) type c value 'PER',

lc_9006(4) type c value '9006'.

pcomm = sy-ucomm.

CASE pcomm.

  • when p_butt is "Route to new Evaluator"

WHEN GC_ZRNE.

CALL FUNCTION 'Z_POPUP_SCREEN_0494'.

  • when p_butt is "display implementation detials"

WHEN GC_DIMD.

psyst-ioper = 'DIS'.

SET PARAMETER ID: lc_per FIELD lv_pernr,

lc_9006 FIELD lv_infty.

CALL TRANSACTION 'PA30' and SKIP FIRST SCREEN.

ENDCASE.

ENDMODULE. " USER_COMMAND_ROUTE INPUT

i dont know why it doesnt seem to skip the first screen of infotype 9006.

can somebody please correct this coding part of my module:

WHEN GC_DIMD.

psyst-ioper = 'DIS'.

SET PARAMETER ID: lc_per FIELD lv_pernr,

lc_9006 FIELD lv_infty.

CALL TRANSACTION 'PA30' and SKIP FIRST SCREEN.

Thanks a lot. it will really be of big help. thank thnaks in advance.

Mark

Hello Experts,

i am having difficulty in this part of my enhancement.

i have enhanced an infotype, and i added 1 button there which, when clicked, it should DISPLAY a custom infotype that i have developed.

here's my code:

MODULE user_command_route INPUT.

data: lv_pernr type RP50G-pernr,

lv_infty type RP50G-CHOIC.

CONSTANTS: lc_per(3) type c value 'PER',

lc_9006(4) type c value '9006'.

pcomm = sy-ucomm.

CASE pcomm.

  • when p_butt is "Route to new Evaluator"

WHEN GC_ZRNE.

CALL FUNCTION 'Z_POPUP_SCREEN_0494'.

  • when p_butt is "display implementation detials"

WHEN GC_DIMD.

psyst-ioper = 'DIS'.

SET PARAMETER ID: lc_per FIELD lv_pernr,

lc_9006 FIELD lv_infty.

CALL TRANSACTION 'PA30' and SKIP FIRST SCREEN.

ENDCASE.

ENDMODULE. " USER_COMMAND_ROUTE INPUT

i dont know why it doesnt seem to skip the first screen of infotype 9006.

can somebody please correct this coding part of my module:

WHEN GC_DIMD.

psyst-ioper = 'DIS'.

SET PARAMETER ID: lc_per FIELD lv_pernr,

lc_9006 FIELD lv_infty.

CALL TRANSACTION 'PA30' and SKIP FIRST SCREEN.

Thanks a lot. it will really be of big help. thank thnaks in advance.

Mark

2 REPLIES 2
Read only

Former Member
0 Likes
763

Hi,

Can you try with passing begda and endda

Eg:

set parameter id 'BEG' field begda.

set parameter id 'END' field endda.

If any subtype in your infotype use the subtype also.

Eg:

set parameter id 'SUB' field subtype.

By

Anand Babu

Read only

0 Likes
763

Hello anand,

i already tried it,

i even tried to supply ITP as parameter id for INFOTYPE (which by the way, i found here) but still is not working.

anyway, i guess the only thing to implement this requirement is via BDC...

i already tried in our sandbox, and is working...

my only problem is performance issue.

anyway,

thanks a lot for your time.