cancel
Showing results for 
Search instead for 
Did you mean: 

Amount problem in sap script

Former Member
0 Kudos

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.

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

hi

increase the output length of ur amount field.

  • comes when field output length is falling short.

hope this help .

former_member196280
Active Contributor
0 Kudos

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

Former Member
0 Kudos

ITS NOT WORKING IT IS COMING LIKE PREVEOUS.

former_member196280
Active Contributor
0 Kudos

Ok, send me your code lines in your SAP script.

Regards,

SaiRam

Former Member
0 Kudos

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

Former Member
0 Kudos

/: 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 &REGUD-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& &REGUD-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& &REGUD-DMBTR&

/* &CODE_DEDUC(2L)& &REGUD-ABZUG& &REGUD-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 &REGUD-TXTHR&

/E 526

AS

/E 530

/E ANNEXURE

AS Please find details in annexure---

/E SUMMARY

Former Member
0 Kudos

can you please provide the lines you have coded.

Regards,

Nageswar

Former Member
0 Kudos

/: 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 &REGUD-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& &REGUD-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& &REGUD-DMBTR&

/* &CODE_DEDUC(2L)& &REGUD-ABZUG& &REGUD-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 &REGUD-TXTHR&

/E 526

AS

/E 530

/E ANNEXURE

AS Please find details in annexure---

/E SUMMARY

Former Member
0 Kudos

Is itr getting printed for all the below fields.

C4>&TOT_AMT&,,

= TDS,,&TDS_AMT(10)&,,<C4>&ACT_AMT&

If possible debug the form and try to find out the values for these fileds. Just check if you are getting * in these fileds and let me know.

Regards,

Nageswar

Former Member
0 Kudos
  • is coming only for ACT_AMT.

Please tell me Is it necessary to declear all amount field in right alignment.

Thanx.

Former Member
0 Kudos

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