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

Regarding Function Exits

Former Member
0 Likes
760

Hi Friends,

Is there a way to find out exactly at which point the function exits get executed?. My requirement is to add a tab and 3 new fields to the CJ01 transaction. I dunno how to update these values in the standard table PROJ. I tried using

EXIT_SAPLCJWB_002 - PS Customer Exit: User Specific Fields PROJ (Data SAP -> SUBSCREEN)

EXIT_SAPLCJWB_003 - PS Customer Exit: User Specific Fields PROJ (Data SUBSCREEN -> SAP)

Am i going in the right direction.

Prompt replies would be rewarded suitably.

Thanks,

Tamilarasan.

4 REPLIES 4
Read only

Former Member
0 Likes
605

Hello,

Yes, you are using the right exits.

Regards, Murugesh AS

FUNCTION EXIT_SAPLCJWB_002.
*"----------------------------------------------------------------------
*"*"Lokale Schnittstelle:
*"       IMPORTING
*"             VALUE(SAP_PROJ_IMP) LIKE  PROJ STRUCTURE  PROJ
*"             VALUE(CNCI_PROJ_IMP) LIKE  CNCI_PROJ
*"                             STRUCTURE  CNCI_PROJ
*"             VALUE(SAP_DISPLAY_ONLY) LIKE  RCWBS-SEL01
*"----------------------------------------------------------------------
  INCLUDE ZXCN1U11.
ENDFUNCTION.
*----------------------------------------------------------------------*
*   INCLUDE ZXCN1U11                                                   *
*----------------------------------------------------------------------*
              move-corresponding sap_proj_imp to proj.
*- PROJ is Structture for screen fields
FUNCTION EXIT_SAPLCJWB_003.
*"----------------------------------------------------------------------
*"*"Lokale Schnittstelle:
*"  EXPORTING
*"     VALUE(CNCI_PROJ_EXP) LIKE  CNCI_PROJ STRUCTURE  CNCI_PROJ
*"     VALUE(FLG_CLR_OK_CODE_EXP) TYPE  C
*"----------------------------------------------------------------------
  INCLUDE ZXCN1U12.
ENDFUNCTION.
*----------------------------------------------------------------------*
*   INCLUDE ZXCN1U12                                                   *
*----------------------------------------------------------------------*
              move-corresponding proj to cnci_proj_exp.
*- PROJ is Structture for screen fields

Hope this helps you.

Message was edited by: Murugesh Arcot

Read only

0 Likes
605

Hi,

PS Customer Exit: User Specific Fields PROJ (Data SAP -> SUBSCREEN) - Does this mean that the values from the standard screen fields are passed as a structure to this function module?. Can u please explain the import parameters involved in this function module?. When i put a break-point i only get to see an empty PROJ structure.

I guess i should be able to get the key field value from the standard screen field and use it to update the table with the user-defined fields that i have added in the exit. Am i right?. How to go about it?. Please explain.

Thanks in advance.

Regards,

Tamilarasan.

Read only

Vinod_Chandran
Active Contributor
0 Likes
605

I think you are on the right track. In the ehancement you can find an append strucure for inserting new fields to the table and subscreen to display the new fields. There will be exits to write PBO and PAI codes. The PBO and PAI exits are used to pass data from the table to screen and vice versa.

You can put a break point in the function module to check whether it is the right one. Do not forget to activate the project. I do not have access to SAP system now so not possible to confirm the exit name.

Read only

Former Member
0 Likes
605

Hi Tamilarasan,

In the code look for "Call Customer" and you will find the point where these user exits are called. If you double click on this statement (number) it will take you to the function module (EXIT_SAPLCJWB_XXX).

Cheers,

Sanjeev