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

CT04 function module

Former Member
0 Likes
2,312

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

2 REPLIES 2
Read only

former_member189779
Active Contributor
0 Likes
1,076

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.

Read only

0 Likes
1,076

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
*"----------------------------------------------------------------------