Customer Statement using SAP Script and Standard print program RFKORD10
Using sap script and standard print program RFKORD10 I need to create a customer statement where the main window will be as follows
Invoice # InvoiceDate CustomerPO Debit Amt Credit Amt Total
6 7 8 9 10 11
6 7 8 9 10 11
Totals 12 13 14
Where company code BKORM-KUKRS
Invoice BSID-BELNR
Invoice date BSID-BLDAT
Customer PO VBKD-BSTKD
For each document number selected there will be one to many records in VBRP. For each invoice item in VBRP:
u2022 Select BSTKD from VBKD where
o VBELN = VBRP-VGBEL and
o POSNR = VBRP-VGPOS
u2022 If no hits then select BSTKD from VBKD where
o VBELN = VBRP-VGBEL
If there is more than one PO per invoice then list them in the Customer PO field without repeating the other fields.PO shouldnu2019t come more than once per invoice.
Debit Amt if BSEG-SHKZG = S then WRBTR ELSE 0
Credit Amt if BSEG-SHKZG = H then WRBTR ELSE 0
Total Debit Amt u2013 Credit Amt
Totals Subtotals
It will be of great help if some one can help me with the script and the alterations required in standard print program RFKORD10
Points will b rewarded for sure.
Thanks.
Hi Suganya,
The custom form is getting displayed properly. But the requirement is to have it as an editable PDF. So the functional team is working on configuring the settings of PDF forms with customers email address.
But for right now, i customized the standard form F140_ACC_STAT_01 and standard print program RFKORD10_PDF and did the configuration. It is getting displayed (I tested only with the transaction FBL5N - customer open line items..)
Please let me know any further details on this.
Poornima
Similar Messages
-
Standard smartform name and standard print program name for Sales Quotation
Hi,
I would like to know the standard smartform name and standard print program name which can be used for sales quotation through transaction VA23.
For eg: The standard output type for billing document (For T code VF03) is RD00 and it' smartform name is LB_BIL_INVOICE. It's print program name is RLB_INVOICE.
Similarly, I would like to know the standard smartform name and standard print program name for AN00 output type which is used for sales quotation. .
Regards,
ZahidHello
std driver prgram is /SMB40/RVADOR01
form entry is ENTRY
std smartforms is /SMB40/SDQUO_A an du can check this the in NACE tcode.
Output Type AN00 Quotation
Application V1 Sales
Program /SMB40/RVADOR01
Form Routine ENTRY
Form RVORDER01
PDF/Smartform Form /SMB40/SDQUO_A
Thank u,
santhosh -
Standrad smartform and standard print program not available in ECC 6.0
Hi gurus,
I have a requirement like, I need to change the logo of the standrad smartform based on the company code.
The standard smartform name is '/SMBUSE/US_MMGR3'.
I have searched for the above form in ECC 6.0 and could not find one.
is the issue because of installation or configuration?
Please let me know what need to be installed or configured. so that I can give directions to the respective basis / functional guys.
please let me know the standard print program for the above smartform and how can I find the same.
Thanks & Regards
Kiran Kumar KHi ,
No standard smartform's were available because SAP Best Practises was not installed in the system.
If standard smarforms are not installed then in this case we need to need to download the forms and upload them in our system.
We need to copy paste the standard print program's as well.
Thanks & Regards,
Kiran Kumar K -
How to find the standard smartform,sap scripts and theur driver programs
Hi friends,
can any one tell me how to find the standard smartforms and their driver programs and same for scripts also.
bye
sasiHi sasidhar,
1. Either standard or Y sapscript layouts,
we can check their standard programs
in this manner also.
2. goto se71
open the layout in DISPLAY mode.
3. FORM------> CHECK -
> TEXTS
4. a small window will come.
click ok (tick button)
5. Again a new window will come
which will list out all the DRIVER programs,
which use this layout.
regards,
amit m. -
How to use perform statements in sap scripts
how to use perform statements in sap scripts . and pls send me one progam for this
thnaks
rajaHi Raja,
<b>PERFORM</b> key work is used to include subroutine in sapscript form...
But the processing is lttle bit different form the one we use in ABAP.
Here the paramters passed to form is stored in internal table of name-value table. there are two table one for inbound parameter and other for outbound parameters.
Check out the example below to see how this is used..
<b>Definition in the SAPscript form:</b>
/: PERFORM GET_BARCODE IN PROGRAM QCJPERFO
/: USING &PAGE&
/: USING &NEXTPAGE&
/: CHANGING &BARCODE&
/: ENDPERFORM
/ &BARCODE&
<b>Coding of the calling ABAP program:</b>
REPORT QCJPERFO.
FORM GET_BARCODE TABLES IN_PAR STUCTURE ITCSY
OUT_PAR STRUCTURE ITCSY.
DATA: PAGNUM LIKE SY-TABIX, "page number
NEXTPAGE LIKE SY-TABIX. "number of next page
READ TABLE IN_PAR WITH KEY PAGE.
CHECK SY-SUBRC = 0.
PAGNUM = IN_PAR-VALUE.
READ TABLE IN_PAR WITH KEY NEXTPAGE.
CHECK SY-SUBRC = 0.
NEXTPAGE = IN_PAR-VALUE.
READ TABLE OUT_PAR WITH KEY BARCODE.
CHECK SY-SUBRC = 0.
IF PAGNUM = 1.
OUT_PAR-VALUE = |. "First page
ELSE.
OUT_PAR-VALUE = ||. "Next page
ENDIF.
IF NEXTPAGE = 0.
OUT_PAR-VALUE+2 = L. "Flag: last page
ENDIF.
MODIFY OUT_PAR INDEX SY-TABIX.
ENDFORM.
Hope this is clear to understand...
Enjoy SAP.
Pankaj Singh. -
How to use msword as editor in sap script and smart form..
how to use msword as text editor in sap scripts and smartforms..
Hi
Go through the link given below :
Saptechnical. com
tutorials
smartforms
you will find solution for how to use MS word as editior.
Or
Call transaction I18N
go to I18N Customizing -> MS Word as Editor.Choose the Help-Button and follow the instructions.
If transaction I18N is not available in your system yet (see SAP Note 848036), you can also enable this feature via program RSCPINST.
Call transaction SE38, enter program RSCPINST and press F8. On the next screen,select Goto -> Set MS Word as Editor.
With Regard
Nikunj shah -
Use of IF statement in SAP Scripts
Can u tell me how to use IF statement in SAP Scripts.
The problem is
if &sy-tabix& eq '1'
total
else
total1.
endif.
this sy-tabix is not workingi think sy-tabix will not work here....
do like this..
data : vtabix type i.
loop at itab.
vtabix = sy-tabix.
write_form...for the text element..
endloop.
in form layout
/: if &vtabix(c)& eq 1
/:endif
regards
shiba dutta -
PO for item of service Level short and long text using sap script
Please let me know how to do the PO for item of service Level short and long text using sap script.
<MOVED BY MODERATOR TO THE CORRECT FORUM>
Edited by: Alvaro Tejada Galindo on May 5, 2009 10:25 AMHi ,
In the transaction related to PO select the path goto->header texts and then details of the texts like ID,objectname,language,name.Pass all theses details to 'READ_TEXT ' FM. Then you will get text lines described for a perticular Po ,similarly for item also.
Thanks,
Suma. -
Missing fields in the output while using SAP SCRIPT
Hi,
I am working on an issue where we are using F110 to print some checks, and for this we have created a custom sap script and we are using a std driver program RFFOUS_C, we have also maintianed a custom subroutine pool ZRFFOUS which will retrieve the missing data for the sap script which was not there in the std. program. Now we have applied a SP to our system and since then we are having a problem...when we are printing the chechks its missing some fields.
Surpisingly, it is happening for all scripts like Dunning, invoice......
These scripts are working good in production which is not applied patches.
I have tried in all ways, did debug, data is there in tables and scripts are exactly same as in production.
Could you please share any ideas regarding this? What would be the effect of patches?
Thanks
ShaHi ,
I think u r printing the Check through the Tr Code F110.
In that program u r using the Standard Driver Program RFFOUS_C and u create a New Sap script.
and also u also mantained the custom subroutine pool ZRFFOUS . when ru giving printing u are not able to print some field.
In this case when u using the Standard driver Program RFFOUS_C in that program there is a Include Progran * RFFORI01---- check ,
in this program it is calling the Standard Form (F110PRENUM_CHCK) i--e t042e-zforn .as shown in the below and it is calling the function module 'OPEN_FORM'._
Please copy the form asZF110_PRENUM_CHCK and and do the changes in that form . and we need to maintained the Form as Company code level -- and it will shown this Table T042E (Company Code-Specific Specifications for Payment Methods)
Please go to Transaction Code FBZP and U can maitained the New Sap Script Form Company Code Level.
one thing while u calling your new subroutine pool ZRFFOUS Please call this subroutine in your Sap Script form then only u can see all values in your Check. and Actvate the Sap script .
Like U can call your new subroutine ZRFFOUS in your New Sap script Program.
/E CHECK
/: PERFORM XXXXXXX IN PROGRAM XXXXXX''
/: PERFORM CHECK_NAME IN PROGRAM ZRFFOUS
/: USING &XXXXXXX&
/: CHANGING &XXXXXX&
/: ENDPERFORM
In the subroutine pool ZRFFOUS u have to call as
FORM CHECK_NAME TABLES t_data_in STRUCTURE itcsy
t_data_out STRUCTURE itcsy.
xxxxx
xxxxx
xxxxx
ENDFORM.
In this case when u using the Standard driver Program RFFOUS_C in that program there is a Include Progran * RFFORI01---- check ,
in this program it is calling the Standard Form (F110_PRENUM_CHCK) i--e t042e-zforn .
open check form
CALL FUNCTION 'OPEN_FORM'
EXPORTING
form = t042e-zforn
device = 'PRINTER'
language = t001-spras
options = itcpo
dialog = space
EXCEPTIONS
form = 1.
IF sy-subrc EQ 1. "abend:
IF sy-batch EQ space. "form is not active
MESSAGE a069 WITH t042e-zforn.
ELSE.
MESSAGE s069 WITH t042e-zforn.
MESSAGE s094.
STOP.
ENDIF.
ENDIF.
I thing it will help u to solve this issue.
Thanks.
Gagan -
Is there any way to archive correspondence customer statements in SAP
Hi,
1) Is there a way to archive customer statements for correspondence that SAP has provided? If not, do you know of any way that companies use to archive customer statements?
2) Business Address Services -- Does it fall under the realm of functional or technical teams? The reason I ask is there are some customers that need to get their statements by mail and some by fax and some with both by fax and mail. I found out that this can be done by BAS. But it all looks too technical to me.
3) Can customer statements only be generated using SAP script or are you sure you can use SMARTFORMS?
Your replies are stongly appreciated and points will be rewarded.
Thanks,
Lakshman.Hi Laksman,
Welcome to SDN !!!
Well for your answer.
1) to my knowledge most of the company save customer statement externally, either through paper or as pdf files.but you can generate customer statement as describe by SURE above.
2) Well Business address services fall under functional even through it seems too technical. But you need help to techinical team to execute the same. as in the end configuration needs to be done for output types to decide if its printed or send through Fax. etc.
3) Smartforms can also be used but SAP script is the most commonly used.
Hope this helps.
Please assign points as way to say thanks
3) -
Difference jb/w text symblosin script and standard text in scripts
hi to all
can u pols explain about the
difference b/w text symblos in script and standard text in scriptshi
Default paragraph Paragraph set to * in <b>standard text</b> maintenance
If no form has been assigned to a text, the system automatically assigns the form SYSTEM, which contains minimal definitions for text formatting. There are two ways of formatting texts using forms: Use the <b>standard text</b> maintenance to enter and print the text.
Any kind of text can be included in a form. If no object is specified, then TEXT will be used (<b>standard texts</b>).
<b>
Text Symbols</b>
Text symbols acquire their values as a result of explicit assignment. To interactively assign text symbols, in the text editor choose Include  Symbols  Text. This method is available for all text symbols belonging to a text module as well as those of the associated form. Values defined in this way are lost when the transaction is left. If you want to print the text module again, then you must enter the symbol values again. The purpose of the DEFINE command is to provide a means of making this value assignment a permanent part of the text, so that the values are available again when the text module is called again. This command can also be used to re-assign a new value to a text symbol half-way through the text. Syntax: /: DEFINE &symbol_name& = 'value'
/: DEFINE &subject& = 'Your letter of 7/3/95' The value assigned can have a maximal length of 60 characters. It may itself contain other symbols. A symbol contained within the value assigned to another symbol is not replaced with its own value at the point at which the DEFINE command is executed. Rather, this replacement is made when the symbol defined in the DEFINE command is called in the text.
/: DEFINE &symbol1& = 'mail' /: DEFINE &symbol2& = 'SAP&symbol1&' /: DEFINE &symbol1& = 'script' &symbol2& -> SAPscript If, however, the DEFINE command is written using the ':=' character rather than the '=' character, then any symbol contained within the value being assigned is replaced immediately with its current value. The assignment to the target symbol is made only after all symbols in the value string are replaced with their values. The total length of the value string may not exceed 80 characters. The target symbol must be a text symbol, as before.
/: DEFINE &symbol1& = 'mail' /: DEFINE &symbol2& := 'SAP&symbol1&' /: DEFINE &symbol1& = 'script' &symbol2& -> SAPmail
Inserting <b>Text Symbols</b>
Procedure
Inserting a Text Symbol
1. Choose Insert → Symbols → Text.
2. Place the cursor on the desired text symbol.
3. Choose Choose.
4. The system inserts the text symbol.
Editing the Value of a Text Symbol
1. Choose Insert → Symbols → Text.
2. Choose Edit value bearbeiten. The dialog window Value definition for symbol <text symbol> appears.
3. Enter the appropriate value definition.
4. Choose Continue. In the dialog window Text symbols the specified value appears after the name of the text symbol.
5. Choose Continue.
Deleting all Text Symbol Values
1. Choose Insert → Symbols → Text.
2. Choose Delete all values. The system deletes all defined values.
3. Choose Continue.
Using Formatting Options for Text Symbols
1. Choose Insert → Symbols → Text.
2. Choose Options. The dialog window Formatting options for <text symbol> appears.
3. Fill in the fields.
4. Choose Continue.
5. Choose Continue. The system executes the selected formatting option.
regards
ravish
<b>plz reward points if helpful</b> -
What is the diff b/w Sap Scripts and Smart Forms
Hi,
Whats the diff b/w SAP Scripts and Smart Forms..
I need the internal explanation for both Smart Forms and SAP Scripts mean when we execute what happens whether Print Program r Forms starts execution 1st and SIMILARLY FOR SMARTFORMS WHETHER FM'S R FORMS.
Thanks & Regards,
Gopi.Hi
Difference with SMARTFORMS vs. SapScript(SE71)
The Following are the differences :-
a) Multiple page formats are possible in smartforms which is not the case in SAPScripts
b) It is possible to have a smartform without a main window .
c) Labels cannot be created in smartforms.
d) Routines can be written in smartforms tool.
e) Smartforms generates a function module when activated.
f) Unlike sapscripts (RSTXSCRP), you cannot upload/download Smartform to your local harddisk.
It was said that it was provided in CRM 3.0 version, but not available in R/3. You can download smartforms into Local PC in a XML format. In the same way you can upload this XML format into Smartform. From the smartform editor itself you can call download option, if you are working in CRM 3.0 environment.
In R3 also, you can download into XML format. However, it's not sure about uploading. Refer to the program 'SF_XSF_DEMO'.
In 4.7 Enterprise, other have seen this utlity which is completey missing in 4.6c. There is functionality to downlaod a complete form or only a particular node. (Utilities -> Download form). It will create a XML file and save it in the hard disk.
For others, if you want to download/upload the Smartforms source, you will need the help from the Basis people. What you can do is to create a Transport and then FTP down to your local harddisk. When you need the Smartform source in another system, you have FTP up the Smartforms file back to the SAP server. Finally, the Basis team, will tp it into your system.
g) The protect and endprotect command in sapscript doesn't work with smartforms. For example on a invoice: First data of position no 80. is printed on page one, other data of position no 80 is printed on page 2. And there's nothing you can do about it. Actually, there is something you can do about it. By using a folder node and checking the 'protect' checkbox, everything in that folder will be page protected.
check out this link:
http://www.sap-img.com/smartforms/sap-smart-forms.htm
Reward points if helpful.
Regards,
Swathi. -
? MSWORD as EDITOR in sap script and smart forms ?
Hi friends,
How to use MSWORD as EDITOR in sap script and smart forms.
Edited by: Julius Bussche on Jul 17, 2008 12:45 PMhi,
Call transaction I18N
go to I18N Customizing -> MS Word as Editor.Choose the Help-Button and follow the instructions.
If transaction I18N is not available in your system yet (see SAP Note 848036), you can also enable this feature via program RSCPINST.
Call transaction SE38, enter program RSCPINST and press F8. On the next screen,select Goto -> Set MS Word as Editor. -
Regarding debugging in sap script and smart form
hi guys,
can any one tell me what are the different steps and options available to debug a SAP SCRIPT and a SMARTFORM.
thank you very much
pavanScripts:
1. In the form, Utilities->debugger / RSTXDBUG FM for debugging script
2. Generally SAP script contains the Layout and corresponding print program.
First go to SE71 and enter ur script name. In the same screen go to Utilities->click on activate debugger option.
Now go to SE 38 and enter ur Print Program name and execute the program.
Now you can debug the script Page wise and window wise.
Smartforms:
In the Smartform, create a Code Node and within the Code Node you can hardcode a normal abap Break Point.
Insert a "Program Line" just above the node you want to debug and this program line write a normal abap breakpoint. So whenever you call the smartforms, it will stop at this breakpoint and you can debug onwards.
Other way to debug smartform is to debug the Function Module of that smartforms.
You can also use <b>smartform trace (transaction SFTRACE)</b>.
Have a look at below link.
http://help.sap.com/saphelp_erp2004/helpdata/en/49/c3d8a4a05b11d5b6ef006094192fe3/frameset.htm
I hope it helps.
Best Regards,
Vibha
*Please mark all the helpful answers -
Need help with Signature on Checks using SAP SCRIPT
Hi,
I am looking for some help on how to get the Printer Resident Singature on to the Check using SAP Script. We have a HP Laser 8150 Priter in which the Chip Contains the Signature ( Printer Resident Singaure ) and currentlly the ORACLE application is able to print this signature on the checks. Right now we are in Migration to SAP and we are trying to get this Signature to print on the Check using SAP Script.
Please help us.There are many ways to do this, the simplest way to print the signature is using HEX ENDHEX command.
1. Print the Printer font list from the printer configuration menu, Find the signature in the font list, next to it there'll be esacape sequence in ASCII and Hex format.
2. Add the following command in the window of the signature:
/: HEX TYPE PCL
/= Enter the Hex escape sequence(begins with 1B) from first step
/: ENDHEX
Regards
Sridhar
Maybe you are looking for
-
Need session variable after inserting a record.
I have a page where I am setting up a new user. After they enter their username, password, address etc. I am inserting the record when they press the commit button, then moving on to the next page. I have a session variable setup called user_name, w
-
JDBC connection pool getting killed in Managed Server
I am running a managed server in a Windows2000 SP2,WebLogic 6.0 SP2, JDK 1.3.1_01 environment When I start the managed server I get the following error: Attempting to create Connection Pool for the Pool Registry Entry : perfectFitPool <Nov 24, 2001 9
-
Compensation Information - Where is selected pernr stored?
Hi Experts In the MSS Compensation Information page, when an employee is selected, where is the pernr of that employee stored? Is it in the java memory somewhere? Is there a way to read that pernr using a function module? I want to add a WD abap ivie
-
Why does my iMessage say (-1)?
Since I upgraded the OS software, I can no longer send or receive messages. After composing a message and sending, the iPhone re-sets (flashes quickly) to the home screen. When I go back into messages, the title bar says -1 Message. The messages are
-
Can the bullet point size be made bigger in Mail
Can the bullet point size be made bigger without increasing the size of the wording ? It seems to too small to me. thanks Greg