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: 

Regarding Customer Exit

Former Member
0 Kudos

I am doing Function Exit for Transaction CO12.

When the Wage Group is initial it should display message like "Enter Shift A/B/C in field Wage Group".

i am getting this one. after display this message screen should go to previous screen ( What we entered data) . I am getting this one but data is clearing and fresh CO12 transaction is opening.

I want that data also.

Please sugget.

Regards

Rami

5 REPLIES 5

former_member1245113
Active Contributor
0 Kudos

Hi Rami Reddy,

Please go through the function exit clearly.

it will have import and export parameters.

if you want you data to be there,

you have to pass these values back to the export parameters so that the structure gets updated.

Thanks and regards

Ramchander Rao.K

Former Member
0 Kudos

Post your code for troubleshooting.

Regards

Karthik D

0 Kudos

DATA : GK_AFRUD TYPE AFRUD.

hi i am sending my code.

DATA : GT_AFRUD LIKE GK_AFRUD OCCURS 0.

loop at AFRUD_TAB.

MOVE-CORRESPONDING AFRUD_TAB TO GK_AFRUD.

append GK_AFRUD TO GT_AFRUD.

clear GK_AFRUD.

endloop.

LOOP AT GT_AFRUD INTO GK_AFRUD.

IF GK_AFRUD-LOGRP IS INITIAL.

message 'Enter Shift A/B/C in field Wage Group' TYPE 'I'.

SET SCREEN '0300'.

LEAVE SCREEN.

ENDIF.

ENDLOOP.

Regards

Rami

0 Kudos

Dear Rami Reddy,

This is a functio Exit.

i don't think you need to use LEAVE SCREEN.

see from the Standard Code of SAP the funtion module will get called and it come to your code, after executing the FM it will contine processing further.

in Function Exits IT is not adviceable to use LEAVE SCREEN or CALL SCREEN unless suggeted by the FM documentation

Most importantly you are using the LEAVE SCREEN with in a loop.

please analyze your code with peace of mind.

regards

Ramchander Rao.K

Edited by: ramchander krishnamraju on Nov 20, 2008 8:18 AM

Former Member
0 Kudos

HI.

Please re-check exit parameter may be you need to pass parameter of "Message" back to previous

program.

Sayan.