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: 

FIELD dISPLAY IN SMARTFORM

Former Member
0 Kudos
157

Hi,

I tried to display a status description on a smart form but it is showing &STATUS_D& in the output not the value.

 

This is in the initialization part.

SELECT qmart FROM qmel INTO TABLE li_qmel.

SELECT inact stat FROM jest INTO TABLE li_jest WHERE inact EQ ''.

IF li_qmel IS NOT INITIAL.
SELECT qmart stsma
INTO corresponding fields of TABLE li_tq80
FROM tq80
for all entries in li_qmel
WHERE qmart = li_qmel-qmart.

SELECT stsma txt30 estat
INTO CORRESPONDING FIELDS OF TABLE li_tj30t
FROM tj30t
FOR ALL ENTRIES IN li_tq80
WHERE stsma = li_tq80-stsma.

ENDIF

In the program line part.

 

LOOP

AT li_tj30t INTO wa_tj30t.
status_d = wa_tj30t-txt30.
ENDLOOP

declaring LI_TJ30T, WA_TJ30T, STATUS_D in the output parameters.

Please help.

Thanx in advance.

1 ACCEPTED SOLUTION

former_member194152
Contributor
0 Kudos
92

Hi Prakhar,

If you write directly to smartform editor then processor will not treat that word as variable it will treat it just like text, you need to insert variable from smartform provided function, please refer following image to insert variable in smartform :

Thanks,

Gagan

5 REPLIES 5

Former Member
0 Kudos
92

2 things here,

1) if you are maintaining text in multiple language in text table, tj30t, then pass language key.

2) debug the code, if really status text has been maintained in table tj30t.Did u declare STATUS_D as global data?

0 Kudos
92

Checking with language key.

I declared status_d in global data.

sandeep_katoch
Contributor
0 Kudos
92

Hi Prakhar,

have you checked while debugging what value is there in Status_D.

1 more thing where exactly you have declared the Status_d.

Please check during debugging and check whether you are trying to populate it in table.

Id so dont write a code simply write a code on table level wherein you can loop an internal table into work area then there will be no need of this Status_d.

Moreover one more thing I am not able to understand is that why you have used this status_d because you could have directly used the work area containing the value.

Rgds,

Sandeep katoch

former_member194152
Contributor
0 Kudos
93

Hi Prakhar,

If you write directly to smartform editor then processor will not treat that word as variable it will treat it just like text, you need to insert variable from smartform provided function, please refer following image to insert variable in smartform :

Thanks,

Gagan

Former Member
0 Kudos
92

Thanks Gagan.

its done now.