2012 Oct 04 8:31 AM
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.
2012 Oct 04 10:04 AM
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
2012 Oct 04 8:46 AM
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?
2012 Oct 04 9:40 AM
Checking with language key.
I declared status_d in global data.
2012 Oct 04 8:52 AM
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
2012 Oct 04 10:04 AM
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
2012 Oct 04 11:20 AM