on 02-18-2008 6:30 AM
Hi Freinds,
I am working in cheque printing.
In my form there is two colum first is Amount and other is Amount after deduction.
In first colum amount is coming perfectly.
But in second colum amount is not comming completely it shows some * infront of amount.
please clarrify why its comming.
hi
increase the output length of ur amount field.
comes when field output length is falling short.
hope this help .
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Try this &amount(K)& K--> will prevent the conversion routine, this will help you to solve your problem, if not check the below case.
Or
if you have your variable like this &amount(F*)& --> *400.00 "remove F and wrtie your variable like this &amount&
Close the thread once your question is answered.
Regards,
Sairam
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
I think it is the standard functionality from SAP to prefix the amount with asterisk (*) so that the amount printed in the cheque can't be modified (financial issue).
I suggest to add some logic to remove the asterisk as below.
l_new = l_previous.
REPLACE ALL OCCURRENCES OF '*' IN l_new WITH space.
Then, you can use l_new to display the amount you want. Remember to use the Right Align format.
Hope that help.
Regards,
Teddy
/: SET DATE MASK = 'DD.MM.YYYY'
/: PERFORM DEDUC_CODE IN PROGRAM ZPFL002I
/: USING &I_REGUP-BUKRS&
/: USING &I_REGUP-BELNR&
/: USING &I_REGUP-GJAHR&
/: USING &I_REGUP-BUZEI&
/: USING &I_REGUP-SHKZG&
/: USING ®UD-NETTO&
/: USING &FLAG1&
/: CHANGING &NULL&
/: CHANGING &CODE_DEDUC&
/: CHANGING &BLDATE&
/: CHANGING &REFDOC&
/: CHANGING &ACT_AMT&
/: CHANGING &TOT_AMT&
/: CHANGING &TDS_AMT&
/: CHANGING &FINAL_TDS&
/: CHANGING &FINAL_BILL_AMT&
/: CHANGING &FLAG&
/: CHANGING &FLAG_NAME&
/: ENDPERFORM
/: IF &NULL& = '0'
/* &i_REGUP-ZBUKR& &i_REGUP-LIFNR&
P2 &I_REGUP-BELNR&,,&REfdoc&,,<C4>&BLDATE&</>,,<C4>&TOT_AMT&</>,,
= TDS,,&TDS_AMT(10)&,,<C4>&ACT_AMT&</>
/* &i_REGUH-BELNR& &refdoc& &BLDATE&
/* &CODE_DEDUC& ®UD-NETTO&
/: ELSE
/: IF &FLAG& = 'P'
P2 &I_REGUP-BELNR&,,&REfdoc&,,<C4>&BLDATE&</>,,<C4>&TOT_AMT&</>,,
= TDS,,&TDS_AMT(10)&,,<C4>&ACT_AMT&</>
/* &i_REGUP-BELNR& &REfdoc& &BLDATE& ®UD-DMBTR&
/* &CODE_DEDUC(2L)& ®UD-ABZUG& ®UD-NETTO&
/: ELSE
P2 &I_REGUP-BELNR&,,&REfdoc&,,<C4>&BLDATE&</>,,<C4>&TOT_AMT&</>,,
= TDS,,&TDS_AMT(10)&,,<C4>&ACT_AMT&</>
/: ENDIF
/: ENDIF
/E 525-HR
AS ®UD-TXTHR&
/E 526
AS
/E 530
/E ANNEXURE
AS Please find details in annexure---
/E SUMMARY
can you please provide the lines you have coded.
Regards,
Nageswar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
/: SET DATE MASK = 'DD.MM.YYYY'
/: PERFORM DEDUC_CODE IN PROGRAM ZPFL002I
/: USING &I_REGUP-BUKRS&
/: USING &I_REGUP-BELNR&
/: USING &I_REGUP-GJAHR&
/: USING &I_REGUP-BUZEI&
/: USING &I_REGUP-SHKZG&
/: USING ®UD-NETTO&
/: USING &FLAG1&
/: CHANGING &NULL&
/: CHANGING &CODE_DEDUC&
/: CHANGING &BLDATE&
/: CHANGING &REFDOC&
/: CHANGING &ACT_AMT&
/: CHANGING &TOT_AMT&
/: CHANGING &TDS_AMT&
/: CHANGING &FINAL_TDS&
/: CHANGING &FINAL_BILL_AMT&
/: CHANGING &FLAG&
/: CHANGING &FLAG_NAME&
/: ENDPERFORM
/: IF &NULL& = '0'
/* &i_REGUP-ZBUKR& &i_REGUP-LIFNR&
P2 &I_REGUP-BELNR&,,&REfdoc&,,<C4>&BLDATE&</>,,<C4>&TOT_AMT&</>,,
= TDS,,&TDS_AMT(10)&,,<C4>&ACT_AMT&</>
/* &i_REGUH-BELNR& &refdoc& &BLDATE&
/* &CODE_DEDUC& ®UD-NETTO&
/: ELSE
/: IF &FLAG& = 'P'
P2 &I_REGUP-BELNR&,,&REfdoc&,,<C4>&BLDATE&</>,,<C4>&TOT_AMT&</>,,
= TDS,,&TDS_AMT(10)&,,<C4>&ACT_AMT&</>
/* &i_REGUP-BELNR& &REfdoc& &BLDATE& ®UD-DMBTR&
/* &CODE_DEDUC(2L)& ®UD-ABZUG& ®UD-NETTO&
/: ELSE
P2 &I_REGUP-BELNR&,,&REfdoc&,,<C4>&BLDATE&</>,,<C4>&TOT_AMT&</>,,
= TDS,,&TDS_AMT(10)&,,<C4>&ACT_AMT&</>
/: ENDIF
/: ENDIF
/E 525-HR
AS ®UD-TXTHR&
/E 526
AS
/E 530
/E ANNEXURE
AS Please find details in annexure---
/E SUMMARY
close your character formats and check. you are not closing your character formats. one more thing is you dont need to mention character format for each field
use </> to close character format
code as below.
&,,<C4>&BLDATE&,,&TOT_AMT&,,
= TDS,,&TDS_AMT(10)&,,&ACT_AMT& </>
If you still get the probelm just replace your fields and check if it coming for &ACT_AMT& or for the field that is in that position.
also debug your subroutine and check if you are getting the * in the out_tab-value.,
Ok I understand It is not showing in SDN it seems. Then try to denug the subroutine. If you done get there then it is the probelm with length . Use left alignment for last field.
Regards,
Nageswar
Edited by: Nageswar Vattikuti on Feb 18, 2008 6:02 PM
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.