Rlb_invoice
When I run check for rlb_invoice print program it gives me error
In Unicode programs, the "-" character cannot appear in names, as it
does here in the name "CS_DLV-LAND".
and it says the same for many variables
these variables are part of the includes used in the print program
Does any one know why these errors occur and if they need to be resolved?
i am using this in my output determination for my invoices and when currently when i run processing log it says routine entry in program does not exist
done.
Similar Messages
-
How to use RLB_INVOICE standard print program
my program is copy of RLB_INVOICE
when i press execute i m not getting any output
how can i see print preview by executing print program.hi,
check this
REPORT ZRE_SD_INVOICE.
*& Form ENTRY
text
-->P_ENT_RETCO text
-->P_ENT_SCREEN text
FORM ENTRY USING P_ENT_RETCO
P_ENT_SCREEN.
DATA: lf_formname TYPE TDSFNAME,
lf_fm_name TYPE RS38L_FNAM,
g_adrnr LIKE ADRC-ADDRNUMBER.
TABLES DECLARATIONS *
TABLES: NAST, "Messages
*NAST, "Messages
TNAPR, "Programs & Forms
ITCPO, "Communicationarea for Spool
ARC_PARAMS, "Archive parameters
TOA_DARA, "Archive parameters
ADDR_KEY, "Adressnumber for ADDRESS
T005U , "FOR RETRIVAL OF STATE
ADRC . "FOR RETRIVAL OF ADDRESS
DATA DECLARATIONS *
DATA: RETCODE LIKE SY-SUBRC. "Returncode
DATA: XSCREEN(1) TYPE C. "Output on printer or screen
DATA: REPEAT(1) TYPE C.
DATA: NAST_ANZAL LIKE NAST-ANZAL. "Number of outputs (Orig. + Cop.)
DATA: NAST_TDARMOD LIKE NAST-TDARMOD. "Archiving only one time
DATA: GF_LANGUAGE LIKE SY-LANGU.
DATA: L_FMNAME TYPE rs38l_fnam.
data: CS_BIL_INVOICE type LBBIL_INVOICE.
data: IS_PRINT_DATA_TO_READ type LBBIL_PRINT_DATA_TO_READ value
'XXXXXXXXXXXXXXXXXXXXXXXX'.
DATA: BILL_DOC_EXP LIKE VBCO3.
DATA: BILL_DOC_IMP_H LIKE VBDKR.
DATA: BILL_DOC_IMP_I LIKE VBDPR OCCURS 0 WITH HEADER LINE.
DATA: T_RC LIKE ADRC OCCURS 0 WITH HEADER LINE.
DATA: T_T00 LIKE T005U OCCURS 0 WITH HEADER LINE.
DATA: L_WERKS LIKE J_1IEXCHDR-WERKS.
DATA: I_LIKP LIKE LIKP OCCURS 0 WITH HEADER LINE,
I_VBAK LIKE VBAK OCCURS 0 WITH HEADER LINE,
I_LIPS LIKE LIPS OCCURS 0 WITH HEADER LINE,
I_VBKD LIKE VBKD OCCURS 0 WITH HEADER LINE,
I_EIKP LIKE EIKP OCCURS 0 WITH HEADER LINE,
I_MARC LIKE MARC OCCURS 0 WITH HEADER LINE,
I_KNA1 LIKE KNA1 OCCURS 0 WITH HEADER LINE,
I_T604T LIKE T604T OCCURS 0 WITH HEADER LINE,
I_KONV LIKE KONV OCCURS 0 WITH HEADER LINE,
I_VBRK LIKE VBRK OCCURS 0 WITH HEADER LINE,
I_VBRP LIKE VBRP OCCURS 0 WITH HEADER LINE.
I_T685T LIKE T685T OCCURS 0 WITH HEADER LINE,
I_KONV1 LIKE KONV OCCURS 0 WITH HEADER LINE.
*types begin of t_vbrp.
*include structure vbrp.
*types grp_counter type i .
*types end of t_vbrp.
*data i_vbrp type standard table of t_vbrp with header line.
*NAST-OBJKY = BILL_DOC .
DATA : inv_code LIKE vbak-vbeln.
BILL_DOC_EXP-SPRAS = 'E'.
BILL_DOC_EXP-VBELN = nast-objky(10).
inv_code = nast-objky(10).
SELECT SINGLE WERKS INTO L_WERKS FROM J_1IEXCHDR WHERE RDOC =
inv_code.
select * from vbrp into table i_vbrp where vbeln = inv_code.
lf_formname = tnapr-sform.
IF L_WERKS = '2000'.
tnapr-sform = 'ZSF_SD_INVOICE'.
ELSE.
tnapr-sform = 'ZSD_FACTORY_EXCISE_INVOICE_PAT'.
ENDIF.
Read print data
CALL FUNCTION 'LB_BIL_INV_OUTP_READ_PRTDATA'
EXPORTING
IF_BIL_NUMBER = NAST-OBJKY
IF_PARVW = NAST-PARVW
IF_PARNR = NAST-PARNR
IF_LANGUAGE = NAST-SPRAS
IS_PRINT_DATA_TO_READ = IS_PRINT_DATA_TO_READ
IMPORTING
ES_BIL_INVOICE = CS_BIL_INVOICE
EXCEPTIONS
RECORDS_NOT_FOUND = 1
RECORDS_NOT_REQUESTED = 2
OTHERS = 3.
GET THE DATA RELATED TO THE BILLING DOCUMENT BASED ON THE BILLING
*DOCUMENT NUMBER
CALL FUNCTION 'RV_BILLING_PRINT_VIEW'
EXPORTING
COMWA = BILL_DOC_EXP
IMPORTING
KOPF = BILL_DOC_IMP_H
TABLES
POS = BILL_DOC_IMP_I
EXCEPTIONS
TERMS_OF_PAYMENT_NOT_IN_T052 = 1
OTHERS = 2
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
FORMNAME = tnapr-sform
VARIANT = ' '
DIRECT_CALL = ' '
IMPORTING
FM_NAME = L_FMNAME
EXCEPTIONS
NO_FORM = 1
NO_FUNCTION_MODULE = 2
OTHERS = 3
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
CALL FUNCTION L_FMNAME
EXPORTING
ARCHIVE_INDEX =
ARCHIVE_INDEX_TAB =
ARCHIVE_PARAMETERS =
CONTROL_PARAMETERS =
MAIL_APPL_OBJ =
MAIL_RECIPIENT =
MAIL_SENDER =
OUTPUT_OPTIONS =
USER_SETTINGS = 'X'
ITAB_LANDX =
ITAB_ZOLLA =
ITAB_AZOLL =
ITAB_KZGBE =
ITAB_IEVER =
ITAB_LADEL =
ITAB_LANDX50 =
ITAB_VTEXT =
ITAB_EXPVZ =
I_KZABE =
NN_LINES =
S =
D =
I_TOTAL =
I_MAKTG =
I_CAL_NET =
IS_BIL_INVOICE = CS_BIL_INVOICE
IS_KOPF = BILL_DOC_IMP_H
IS_NAST =
IS_REPEAT =
IMPORTING
DOCUMENT_OUTPUT_INFO =
JOB_OUTPUT_INFO =
JOB_OUTPUT_OPTIONS =
TABLES
I_LIKP = I_LIKP
I_VBAK = I_VBAK
I_LIPS = I_LIPS
I_VBKD = I_VBKD
I_EIKP = I_EIKP
I_MARC = I_MARC
I_KNA1 = I_KNA1
I_T604T = I_T604T
I_KONV = I_KONV
I_VBRK = I_VBRK
I_VBRP = I_VBRP
I_T685T = I_T685T
I_KONV1 = I_KONV1
IS_PO = BILL_DOC_IMP_I
EXCEPTIONS
FORMATTING_ERROR = 1
INTERNAL_ERROR ` = 2
SEND_ERROR = 3
USER_CANCELED = 4
OTHERS = 5
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ENDFORM. "ENTRY
Regards
Santosh. -
Different text depending on number of copies (RLB_INVOICE)
Dear SDN community,
I need to print the sales invoice in three copies, in which the first copy says "Original", the second "Duplicate" and the third "Triplicate".
Looking at RLB_INVOICE coding, I noticed that the Smartform is called three times. I copied standard Smartforms LB_BIL_INVOICE and created inside the reapeat window three different text elements with the conditions query the SFSY-COPYCOUNT variable. In every call, the variable is 1.
Is there any way to archive this requisite without changing standard report RLB_INVOICE?
Naturally, changing standard report I can pass sy-tabix variable inside SF and query this variable. But shouldn´t it be possible without changing standard report?!
Thanks in advance,
MPMDear José,
In your solution I need to copy standard program to a Z, right?!
Since I need to create a copy, I would rather prefer to pass the sy-index variable as parameter into my SF like shown below.
Data: ld_index like sy-index.
DO nast_anzal TIMES.
* In case of repetition only one time archiving
IF sy-index > 1 AND nast-tdarmod = 3.
nast_tdarmod = nast-tdarmod.
nast-tdarmod = 1.
ls_composer_param-tdarmod = 1.
ENDIF.
IF sy-index NE 1 AND repeat IS INITIAL.
repeat = 'X'.
ENDIF.
* call smartform invoice
* MPM move sy-index to local variable
move sy-index to ld_index.
CALL FUNCTION lf_fm_name
EXPORTING
archive_index = toa_dara
archive_parameters = arc_params
control_parameters = ls_control_param
* mail_appl_obj =
mail_recipient = ls_recipient
mail_sender = ls_sender
output_options = ls_composer_param
user_settings = space
is_bil_invoice = ls_bil_invoice
is_nast = nast
is_repeat = repeat
* MPM include index parameter
is_index = ld_index
importing job_output_info = ls_job_info
* document_output_info =
* job_output_options =
EXCEPTIONS formatting_error = 1
internal_error = 2
send_error = 3
user_canceled = 4
OTHERS = 5.
IF sy-subrc <> 0.
* error handling
cf_retcode = sy-subrc.
PERFORM protocol_update.
* get SmartForm protocoll and store it in the NAST protocoll
PERFORM add_smfrm_prot.
ENDIF.
ENDDO.
Since it seems to me that my requirement is quite normal, I was looking for way to solve it using the standard program. Somebody surely had the same problem?!
To Satyajit: Yes, I used a copy window and I am checking SFSY-COPPYCOUNT. But value is always 1. I have three text elements with conditions checking SFSY_COPYCOUNT, but all copies are always original since the value of SFSY-COPYCOUNT is always 1.
To sam_ins: I will check nast structure again, but I am quite sure I checked it already and the problema is the same as SFSY-COPYCOUNT.
Thanks anyway,
MPM
Edited by: Marcelo Moreira on Dec 21, 2010 11:23 AM -
SmartForm RLB_INVOICE Batch-List
Hi,
I have a problem in smartforms.
I use SmartForm <b>RLB_INVOICE</b> for Invoice Printing.
The problem is at Node:
<b>MAIN -> TABLEITEM -> LOOP_CONFBATCH</b>
The com.structure <b>IS_BIL_INVOICE-IT_CONFBATCH</b>, where the loop goes through is never ever filled (even if I have batches in the invoice).
The only think I found is SAP-Node 669203. Put that doesn't help.
Could someone please help me.
Thanks in advance.
Daniel.
System: 4.6c Patchlevel 35Hi Lanka,
First of all thank you for your reply.
1.) Breakpoint at PERFORM get_data USING ls_print_data_to_read CHANGING ...
returns IS_BIL_INVOICE-IT_CONFBATCH Table is initial.
2.) Debug LB_BIL_INV_OUTP_READ_PRTDATA
LB_BIL_INV_OUTP_READ_PRTDATA calls LB_BIL_INV_OUTP_READ_DBDATA (return okay)
LB_BIL_INV_OUTP_READ_DBDATA calls LB_BIL_INVOUTP_CONFBATC_SELECT (returns RECORDS_NOT_FOUND, see also *)
LB_BIL_INVOUTP_CONFBATC_SELECT calls VB_BATCH_VALUES_FOR_OUTPUT (returns 1 = NO_CLASSIFICATION_DATA)
VB_BATCH_VALUES_FOR_OUTPUT calls CUSL_BATCH_HAS_VALUES (returns 1 = NO_CLASSIFICATION_DATA, see also **)
CUSL_BATCH_HAS_VALUES calls CTMS_OBJECT_HAS_STANDARDCLASS (returns INTERNAL ERROR)
CTMS_OBJECT_HAS_STANDARDCLASS calls CUOB_GET_NUMBER (returns OBJECT NOT FOUND)
CUOB_GET_NUMBER tries to read vom db-table inob.
!!!!inob is empty at our system!!!!
So every function above returns internal error, subrc <=> 0 and so on.
The functions with * returns messages that there are no classifications for our batches!!!
Message class: VL
Message ID: 852
(see SE91)
so I think it's a problem with our customizing. -
Invoice printing with RLB_INVOICE & my own Z smartform
Hi Gurus ,
I have used RLB_INVOICE as a base driver program & designed my own Z smartform ( but refering all standard structures IS_BIL_INVOICE , IS_NAST ,IS_REPEAT ) .
I have already done the required configurations in NACE txn.
Now i notice some fields are not part of this standard structures , How do i get those ?
Help will be rewarded ..
Regards
jamanHi Jaman,
U might be getting document number from the print program.
if u know the tables in which the fields r present, with in the smartforms
fetch the fields thru select queries using document number.
Thanks
Dinakar. -
Using data from rlb_invoice for smartform
Hi,
I am working on creation of smartform and using the default print program ZRLB_INVOICE.
The code which I am seeing now was written by one of my colleague.
He used table VBRP to fetch the details of KZWI1, KZWI2 and KZWI3 which I will be used to calclaute certain type of pricing for different line items.
But i found that if we use is_bil_invoice-IT_PRICE[1] to get the same details instead of fetching the details from VBRP.
is_bil_invoice-IT_PRICE[1]-KZWI1
is_bil_invoice-IT_PRICE[1]-KZWI2
is_bil_invoice-IT_PRICE[1]-KZWI3.
I am just wondering if its ok to use above because it had [1] in that. I am wondering what is it ?Hi tushar,
Yes . Infact SAP Smartform using the IS_BIL_INVOICE-IT_KOND for Determining Condition Records.
Please review the smartform "LB_BIL_INVOICE" --Table ITEM -->READ_KOND_DATA (Program lines) is Using IS_BIL_INVOICE-IT_KOND to Determine Condition Records
Program lines in Smartform LB_BIL_INVOICE:
read condition data
CLEAR GS_IT_KOND.
CLEAR GS_IT_PRICE.
DATA: GS_IT_KOND_WA TYPE LBBIL_IT_KOND.
LOOP AT IS_BIL_INVOICE-IT_KOND INTO GS_IT_KOND_WA
WHERE BIL_NUMBER = GS_IT_GEN-BIL_NUMBER
AND ITM_NUMBER = GS_IT_GEN-ITM_NUMBER.
IF GS_IT_KOND_WA-KOEIN ='%'.
DIVIDE GS_IT_KOND_WA-KBETR BY 10.
ENDIF.
WRITE GS_IT_KOND_WA-KBETR TO GS_IT_KOND_WA-BTRMW CURRENCY '2'.
APPEND GS_IT_KOND_WA TO GS_IT_KOND.
ENDIF.
ENDLOOP.
I think no need to write any extra code for retreiving Condition Records.
Lanka -
FI standard print program for invoice
Hi,
I want any standard print program and smartform avilable for Fi module to print invoice, like for example we have rlb_invoice in SD module.
Thanks & regards,
Sathish.Hi.
Check this- /SAPDII/FINC_LIST
Please search in Tcode: Smartforms , use F4, U will find all smartforms
Regards
Jana -
Excise invoice print preview.
Hi..Gurus,
How we can see the print preview of the excise invoice. What the settings that are needed?
regards,
jyothi.hI,
gOTO t.CODE NACE and select V3 then click the output types button, then select j110 for out put type for excise invoice, also maintain condition record and accesses sequence for the output type, then assing this to partner function, also for processing routines specify medium as 1 (printout) program as RLB_Invoice or what ever developed in your project also assgin smartform which was developed by your ABAPER.
Then do the output determination by going to SPRO>SD>BF>output determination>output determination for Billing.
If you maintain all these then you will be able to see the print preview of your excise invoice by going to VF02 and select the output type and then see the print preview but first you have to create your excise invoice.
Hope this will give u some idea,
Reward points if helpful.
Bye
Anil -
Credit Memo and Debit Memo extraction by extractor
Hi,
I've to extract data from 2lis_13_vditm datasource.
Let us say if credit memo and debit memos are coming from this then key figure values are going to be multiplied with -1 for credit memo and debit memo will come +ve values correct?Hi
This may be helpful.
use the same Invoice Script/smartform for Credit/debit memo's
INVOICE
Output type : RD00
ScriptForm Name : RVINVOICE01
Driver Program Name : RVADIN01
smartform name : LB_BIL_INVOICE
Smartform Driver Pgm: RLB_INVOICE
Reward points if useful.
Thanks & Regards
vinsee -
I need the 2 standard form name for credit memo and debit memo.Its SD related.
Where can I find ?
How to link with print program after customizing.
thanksHi
This may be helpful.
use the same Invoice Script/smartform for Credit/debit memo's
INVOICE
Output type : RD00
ScriptForm Name : RVINVOICE01
Driver Program Name : RVADIN01
smartform name : LB_BIL_INVOICE
Smartform Driver Pgm: RLB_INVOICE
Reward points if useful.
Thanks & Regards
vinsee -
How to configure output for adobe forms in sap,,if i want to pront an invo
Hi,
I used adobe forms in GTS.
BUt in normal SAP system,i want to use adobe form to print an invoice data.
I wantt o use the standard form and standard interface for that.
But how to do configuration for this?
normally for smartforms we do it in NACE transdaction?
But for this adobe forms what is the driver program,,where to configure this form and interface.
Thanks in advance,
sasiHello,
it is the same way how you will configure for smart forms.
Standard driver program is : RLB_INVOICE
Please go through this link, how to configure print forms for invoice.
http://****************/Tips/SmartForms/NACE/Configuration.htm
Edited by: rakhi966 on Sep 9, 2011 9:22 PM -
In which table scripts and smartforms are stored
in which tables scripts and smartforms are stored
eg scripts in tadir.Hi this may be of some help.
SD
SALES ORDER/ENQUIRY/QUOTATION
Output type : BA00
ScriptForm Name : RVORDER01
Driver Program Name : RVADOR01
smartform name
DELIVERY NOTE
Output type : LD00
ScriptForm Name : RVDELNOTE
Driver Program Name : RVADDN01
smartform name : LE_SHP_DELNOTE
Smartform Driver Pgm: RLE_DELNOTE
INVOICE
Output type : RD00
ScriptForm Name : RVINVOICE01
Driver Program Name : RVADIN01
smartform name : LB_BIL_INVOICE
Smartform Driver Pgm: RLB_INVOICE
MM
PUCHASE ORDER/RFQ/CONTRACT
Output type : NEU
ScriptForm Name : MEDRUCK
Driver Program Name : SAPMF06P
smartform name : /SMB40/MMPO_L
smartform driver program: /SMB40/FM06P
GOODS RECEIPT
Output type : WE01
ScriptForm Name : WESCHEINVERS1
smartform name : /SMB40/MMGR1_A
smartform driver program: /SMB40/M07DR
GOODS ISSUE
Output type : WA01
ScriptForm Name : WA_SCHEINVERS1
smartform name : /SMB40/MMGI1_A
smartform driver program: /SMB40/M07DR
FI Forms
Account Statement : F140_ACC_STAT_01
Cheque Printing : F110_PRENUM_CHEK
Balance Confirmation: F130_confirm_01
Dunning Form: F150_DUNN_01
check the link below it provides steps to convert sap scripts to smartforms
http://www.ficoexpertonline.com/downloads/Iyer_SmartForms.pdf
SMARTFORMS -Driver Program
PO: /SMB40/FM06P
SO: /SMB40/RVADOR01
GR: /SMB40/M07DR
with regards,
Hema Sundara.
pls give points if u find this helpful. -
Sending a smartform output as an attachment in RTF format via E-mail
Hi all,
I have a scenario in which the output displayed using smartforms is to be sent as a e-mail attachment. Also, the attachment should be a word doc(RTF format). Can you please me with this.
Warm Regards,
AbhijeetHI,
See the call to function 'LF_FM_NAME' in standard print program <b>RLB_INVOICE</b>. Notice the preceding call to function WFMC_PREPARE_SMART_FORM? This function does the heavy lifting for you; here, no additional work is needed in either the form or the print program. To generate e-mail output.
See the below link
/people/pavan.bayyapu/blog/2005/08/30/sending-html-email-from-sap-crmerp
Thanks
Sudheer -
How to edit a standard form and print progarm
hi experts,
I have lot of standard scripts for my works.but it is very tough to change the print progarm according to our own forms.Is there any easy way yo change the print progarm????
and some of the print progarms are not avilable for smarttforms .i am using ECC 6.0
but the smartform is available .when we try to run it it is saying the fm doesnt exists.what i ahev to do?Hi
In most of the cases there is no need to EDIT/Change the Std driver programs.
We just need to copy the std forms/smartforms and need to change them and to asign the same changed forsm to the driver programs.
see few Scripts/programs
SALES ORDER
Output type : BA00
ScriptForm Name : RVORDER01
Driver Program Name : RVADR01
smartform name
DELIVERY NOTE
Output type : LD00
ScriptForm Name : RVDELNOTE
Driver Program Name : RVADDN01
smartform name : LE_SHP_DELNOTE
Smartform Driver Pgm: RLE_DELNOTE
INVOICE
Output type : RD00
ScriptForm Name : RVINVOICE01
Driver Program Name : RVADIN01
smartform name : LB_BIL_INVOICE
Smartform Driver Pgm: RLB_INVOICE
PUCHASE ORDER
Output type : NEU
ScriptForm Name : MEDRUCK
Driver Program Name : SAPMF06P
smartform name : /SMB40/MMPO_L
Reward points if useful
Regards
Anji -
Change e-mail sender smartforms
Hi Experts,
When I send a billing document from VF03 to a customer, the e-mail address is read from my sap user (SU01). I would like an e-mail address for each billing type, but I don't now how to change "mail_sender" parameters in the smartforms (RLB_INVOICE program).
Can you help me, please?
Thanks.
LucaNo, it certainly is an ABAP-related issue. Developers are the only ones smart enough to figure this stuff out ;-). The note says nothing about sender configuration for medium '5'. The sender is hard-coded as SY-UNAME during the communication strategy analysis (since the call to CONVERT_COMM_TYPE_DATA does not specify a sender).
This is a common issue - most companies normally use a single sender for all invoices (or invoices per company code) and identify the correct sender details on the job user ID. If this isn't good enough, then you have two choices: use a custom program to generate the email yourself after rendering the form (a copy of RLB_INVOICE) and specify the sender OR enhance the existing function to return a different sender based on your criteria. Personally, I'd go with the custom approach.
Maybe you are looking for
-
Transfer from Subtotal in one table to another sheet.
Hi, about a year ago i made a salary application for my production company. This works quite well, but when I supposed to report amounts for each employed to the swedish tax authorities I am still not automatic because I haven't solved how to transfe
-
Crystal report for visual studio 2010 data source object is not valid error
Hello, I receive an "data source object is not valid" error when I want to print one CR document after setting an ADODB.Recordset on SetDataSource method of my report. On my developer station, this operation works without problem but on client statio
-
HI there, I ran apple hardware test through snow leopard OS disk 2, i got this error 4SNS/1/40000000: TG0H-128.000 , My fans are continously running at 5700 rpm even i am doing nothing. I have booked an appointment with genius bar on m
-
I've downloaded Unrarx but im uncertain of where to put it and how to use to for rar files. Help!
-
Hi all, I have a question regarding US Payroll Journal (RPCLJNU0) . By using the standard the UJT1 header form I have created a custom form for my client in pe51 When I execute the form the Payroll area shows up as an astrick ( *) instead of displayi