2014 Mar 21 10:31 AM
I created a smart forms.
in this, for example (2 * 13.90 = 27.80) come on the second line. for first line, it is 0 . for last line it is not displayed. whats wrong with my program??
2014 Mar 21 10:35 AM
please provide sample code for better understanding
Regards,
Monami.
2014 Mar 21 10:41 AM
in se38. i write select statement declaring internal table and work area and as below.
CALL FUNCTION G_FMNAME
EXPORTING
* ARCHIVE_INDEX =
* ARCHIVE_INDEX_TAB =
* ARCHIVE_PARAMETERS =
* CONTROL_PARAMETERS =
* MAIL_APPL_OBJ =
* MAIL_RECIPIENT =
* MAIL_SENDER =
* OUTPUT_OPTIONS =
USER_SETTINGS = 'X'
WA_EKPO = WA_EKPO
SO_EBELN = SO_EBELN
WA_EKKO = WA_EKKO
wa_mara = wa_mara
* DATE = DATE
* IMPORTING
* DOCUMENT_OUTPUT_INFO =
* JOB_OUTPUT_INFO =
* JOB_OUTPUT_OPTIONS =
TABLES
TA_EKPO = TA_EKPO
TA_EKKO = TA_EKKO
ta_mara = ta_mara
EXCEPTIONS
FORMATTING_ERROR = 1
INTERNAL_ERROR = 2
SEND_ERROR = 3
USER_CANCELED = 4
OTHERS = 5
in smartforms, i declared an fieldsymbol.
<wa> like wa_ekpo.
for that amount calculation, amount = <wa>-menge * <wa>-netwr.
2014 Mar 21 10:49 AM
Hi,
There might be sufficient space not available in the last case,check the table design details for the linetype. so, it may not be printed, for the first line check whether any of menge or netwr is 0,Please check.
Regards,
Monami.
2014 Mar 21 10:54 AM
actually, there is no problem of space and line type.. because all values are printing but on the successive lines not on the same line.
2014 Mar 21 11:10 AM
Hi,
I am not sure whether I understood the question correctly. If your requirement is to get the values on the same loop, then insert a program line and then do the calculation inside the loop.
2014 Mar 21 10:51 AM
2014 Mar 21 11:23 AM
can you provide the Text editor screen in which you provide the logic for display.
i mean
this screen.
2014 Mar 21 10:58 AM
hiiii,
Write qty as &w_vbak-menge(C)&
For Price &price(C)&
For Amount &amount(C)&
and finally check the calculation using debugger
2014 Mar 21 11:08 AM
Hi,
I think you wrote the code for qty on below image
Delete the First Default paragraph
follow the below image for Qty
2014 Mar 21 11:33 AM
2014 Mar 21 11:34 AM
I Didn't get any message or image
i got this only
2014-03-21 16_18_23-Change Smart Form texts_ %TEXT28 New Text 28 Language EN.jpg
i declared like this only...
2014 Mar 21 11:45 AM
2014 Mar 21 12:08 PM
can you please check the Paragraph format P5.
If you provide value 1 one for Space Before value will be displayed in next line.
In case if you provided delete the value.
2014 Mar 22 3:44 AM
2014 Mar 21 11:38 AM
Dhivya,
The issue is regarding condensing the Qty field..
You should condense the variable.
Hope this will be helpful..
2014 Mar 21 11:47 AM
how to condense. i dont get it what you are saying sir..
thanks for you reply.
2014 Mar 21 11:50 AM
okay. Add (C) after &amount&..
e.g : &amount(C)&.
if this also not work try this : &amount(CZ)&.
2014 Mar 22 3:42 AM
2014 Mar 22 3:56 AM
2014 Mar 22 4:39 AM
2014 Mar 22 5:30 AM
ya sure sir...
because, initially, the order is text and then code.
then i changed the order like,
code and then text as below.
finally i got it.
2014 Mar 22 6:21 AM
LOL. Thts good.
This is what called Programming.. Well Done....