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

how to define variable for smart form in coding

Former Member
0 Likes
424

hi all,

i have to create a variable for smart form which is i already created in smart form but facing some sort of difficulties.

for example:

DATA: formname TYPE ZCCCL_GOODS_RECEIPT.(SMART FORM NAME)

DATA: formname TYPE ZCCL_RETURN_VENDOR. (SMART FORM NAME)

DATA: formname TYPE ZCCL_GOODS_RESERVATION.(SMART FORM NAME)

CASE in_mseg-bwart.

WHEN '101' or '105' or '321'.

formname = 'FORM_RECEIPT'.

WHEN '122' or '124'.

formname = 'FORM_RETURN_VENDOR'.

WHEN '201' or '261'.

formname = 'FORM_GOODS_RESERVATION'.

ENDCASE.

So this the logic im using but it gave me error like:

Type ZCCCL_GOODS_RECEIPT is unknown.

Kindly tell me if this coding is wrong than what should i use.

Thanks.

2 REPLIES 2
Read only

Former Member
0 Likes
386

Thanks.

Read only

Former Member
0 Likes
386

Declare variable name for smartform as

Formname type TDSFNAME in import tab.