on 08-01-2009 5:04 AM
Hi friends,
I'm pretty much new to SAP Scripts and ofcourse new to SDN and now i had a requirement to develop a cheque format which has 2 lists and in between them preformatted cheque should be printed with data. So i'm customizing the standard cheque form to my own z script and in this i had to print 525 element in both the lists.
Can someone let me know the changes that needs to be done so that i can move forward...
I googled but not able to find the solution that meets
Thanks in advance
Nikil
Nikil,
You can do this with a custom Z SAPscript layout set and the standard RFFOUS_C print program. I have done this for many clients without having to use a Z print program. The RFFOUS_C program is complicated, gets updated frequently, and has many INCLUDEs. SAP recommends NOT to use a Z version (at least they have in the past). Still, many people find it easier to create a Z version of the print program.
For every variable you want to print twice, you need a DEFINE statement in the SAPscript. It copies the value of the variable to a Z variable.
You need to create new windows on each page for the duplicate data (document list section, carry forward amount).
An IF statement is used to determine if the duplicate data should be printed,
The DEFINE statments are also used to clear the duplicated variable. This is done in the MAIN window (above all text elements) to initialize the variable to &SPACE&. After they are printed in the duplicated window, they are set to &SPACE& again.
For example, element 535 in window CARRYFWD does the carry forward amount. I added code for two Z variables.
/E 535
/* ------------------ Balance carried forward below -----------------------
T1 Balance carried forward,,,,,,,,®UD-SWABZ(12)&,,®UD-SWNET(12)&
/*
/* set variables for duplicating balance carried forward in ZCARRY
/: DEFINE &ZZBCFSWABZ& = ®UD-SWABZ(12)&
/: DEFINE &ZZBCFSWNET& = ®UD-SWNET(12)&
I created a new window called ZCARRY. It does NOT have any text elements.
/* duplicate balance carried foward
/: IF &ZZBCFSWABZ& NE &SPACE&
T1 Balance carried forward,,,,,,,,&ZZBCFSWABZ&,,&ZZBCFSWNET&
/: ENDIF
/: DEFINE &ZZBCFSWABZ& = &SPACE&
/: DEFINE &ZZBCFSWNET& = &SPACE&
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
I also same kind of requirement please tell me the process for doing this.my mdkarem gmail please send some documents .
point rewarded ...
thanks in advance
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
welcome to SDN.
Please read forum rules of engagement.
if you have no answer, it's probably your message is not clear. I don't understand what is your issue with "the 2 lists"? (what is a list?) Could you be more specific !
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
I have to print invoice lists before and after cheque and the data should be similar.
Layout should be like
Invoice No, Date, Amount
............................
............................
............................
............................
Preprinted Cheque
............................
............................
............................
Invoice No, Date, Amount
............................
............................
............................
............................
Thanks in advance
Nikil
Hi
First Debug the Script while running your Standard Tcode and check which window& which is triggered in sequence are been triggered based on that modify the script Element # as per your requirement.
always in these kind of issues all you have todo is to first debug and check and the layout and modify the Elements as per your requirements.
surya
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.