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

Unable to get function code for pf-status

Former Member
0 Likes
2,801

Hi friends ..

Im unable to get the function code in sy-ucomm for a button defined in application toolbar of pf-status in a classical report... can anybody help me out.

16 REPLIES 16
Read only

Former Member
0 Likes
2,180

Hi Rahman,

Conform on below things.

1)make sure that PF status of that screen is activated.

2) make sure that you have given your push button details in the Application Toolbar of that GUI STATUS screen

3) and not to clearing the usercommand after executing.

Thanks

Read only

Former Member
0 Likes
2,180

Try out the values for sy-ucomm in debugging mode.

If it is mpp, the values pspar-actio will solve the issue.

Read only

Former Member
0 Likes
2,180

check fo the following

1 give the name of your function code in capital letter

2 have you activated your pf-status

Read only

Former Member
0 Likes
2,180

Hi,

Goto 'SE41', give the program and status no in the initial screen, it will show all the function codes related to that pf-status.

Hope it is clear!!

Regards,

Pavan

Read only

Former Member
0 Likes
2,180

Hi,

Plz check the function code.

U might have delared function code by other name & using differnt name in program.

Confirm it once again.

Give the function code in Cpital Lertters.

Regards,

Pravin

Read only

Former Member
0 Likes
2,180

hi,

write status name in capital letters and activate the status .

SET PF-STATUS 'CREATE'.

you need the following code in your PAI module.

MODULE USER_COMMAND_0100.

CASE OK_CODE.

WHEN 'BACK'.

SET SCREEN 0.

LEAVE SCREEN.

WHEN 'EXIT'.

...

WHEN 'SAVE'.

...

ENDCASE.

endmodule.

thanks

Read only

Former Member
0 Likes
2,180

Hi,

Go with Praveen above,

Check Caps letter in sy-ucomm.

eg: when sy-ucmmm = 'BACK'.

Thanks,

Krishna..

Read only

Former Member
0 Likes
2,180

Im not getting any value in the sy-ucomm ... it is not triggering AT LINE-SELECTION. event. But when im clicking on other standard button this event is triggering... and i can found fcode...

Read only

0 Likes
2,180

HI,

try the event AT USER-COMMAND instead.

Regards,

Dev.

Read only

0 Likes
2,180

hi ..

I tried with that ..but no result..

Edited by: anees rahman on Jan 6, 2009 9:33 AM

Read only

Former Member
0 Likes
2,180

hi,

can you please write the code you are trying?

thanks

Read only

Former Member
0 Likes
2,180

Hi

First create pf-status with 'Capital letter' and acivate it.

Sample code:

AT LINE-SELECTION.

IF sy-lsind = 1.

PERFORM get_add_flightdata.

ENDIF.

AT USER-COMMAND.

IF sy-lsind = 1.

CASE sy-ucomm.

WHEN 'SELECTALL'(007).

thanks,

Tulasi

Read only

Former Member
0 Likes
2,180

AT LINE-SELECTION.

IF sy-ucomm EQ 'CALL1'.

SET PARAMETER ID: 'AUN' FIELD fval.

CALL TRANSACTION 'VA03' AND SKIP FIRST SCREEN.

ENDIF.

Read only

Former Member
0 Likes
2,180

Ya I got it

Read only

Former Member
0 Likes
2,180

Ya I got it

Read only

Former Member
0 Likes
2,180

Ya I got it.