2012 Dec 18 8:13 AM
HI,
Present working with CT04 function module but unable to find the flow.
Class contain few characteristics like --> X_no and X_name ......
Requirement:
When user enter NO in x_No and press enter
1. Need to check this value exist in custom table else raise error
2. if no Exist automatically fill corresponding name in x_name.
i read some posts in SCN but unable to under stand flow.
i find need to create few function modules
which function module i need to assign aginest X_no & how many fm need to create
zFm_f4 is not triggering my break point
how X_name will fill and how do we know this should be fill at run time.
Can anyone pls tell me
<removed by moderator>
Thanks & Regards,
Meggi
Message was edited by: Thomas Zloch
2012 Dec 18 10:48 AM
In CT04 You need to assign this Function Module in Values Tab.In total you need to create 3 Function Modules.
Read SAP Note 1155969 to understand whole concept.
2012 Dec 18 12:08 PM
s i created with same parameters but F4 fm is not triggering ...
have any idea why..
in which fm what we need to write the code
1st FM
ZXXXX_ABCD
*"----------------------------------------------------------------------
*"*"Local Interface:
*" IMPORTING
*" REFERENCE(CHARACT_NO) LIKE CABN-ATINN
*" REFERENCE(CHARACT) LIKE CABN-ATNAM
*" REFERENCE(VALUE) LIKE CAWN-ATWRT
*" EXCEPTIONS
*" NOT_FOUND
*"----------------------------------------------------------------------
2nd fm ZXXX_dc
*"----------------------------------------------------------------------
*"*"Local Interface:
*" IMPORTING
*" REFERENCE(CHARACT_NO) LIKE CABN-ATINN
*" REFERENCE(CHARACT) LIKE CABN-ATNAM
*" REFERENCE(VALUE) LIKE CAWN-ATWRT
*" REFERENCE(LANGUAGE) LIKE SY-LANGU
*" EXPORTING
*" REFERENCE(DESCRIPTION) LIKE CAWNT-ATWTB
*" EXCEPTIONS
*" NOT_FOUND
*"----------------------------------------------------------------------
3rd ZXXX_f4
*"----------------------------------------------------------------------
*"*"Local Interface:
*" IMPORTING
*" VALUE(CHARACT_NO) LIKE CABN-ATINN
*" VALUE(CHARACT) LIKE CABN-ATNAM OPTIONAL
*" VALUE(DISPLAY) TYPE RMCLF-KREUZ DEFAULT SPACE
*" VALUE(ADDITIONAL_VALUES) DEFAULT SPACE
*" VALUE(MULTIPLE_VALUES) TYPE RCTMV-ATLIS DEFAULT SPACE
*" VALUE(LANGUAGE) TYPE SY-LANGU DEFAULT SY-LANGU
*" VALUE(DISPLAY_WITH_LANGUAGE) DEFAULT SPACE
*" TABLES
*" VALUES STRUCTURE RCTVALUES
*"----------------------------------------------------------------------