Re-issue of o/p type of a billing document

Hi,
I have requirement where the a billing document needs to be printed and faxed/emailed to the customer when the o/p type is issued the first time(or the document is saved initially). I'm using SMARTFORM to accomplish it. Now, the user wants to reissue the o/p type but this time the user does not want the document to be faxed/emailed to the customer but only printed. Is there anyway I can check in my Print Program to see if the o/p type is reissued? or is there a requirement routine where I could do so? or do I need to create a requirement routine? Any inputs would be highly appreciated.
Thanks,
Alam.

Add this code to check for repeat to the print program.
DATA LS_NAST.
SELECT SINGLE * INTO LS_NAST FROM NAST WHERE KAPPL = NAST-KAPPL
                                AND   OBJKY = NAST-OBJKY
                                AND   KSCHL = NAST-KSCHL
                                AND   SPRAS = NAST-SPRAS
                                AND   PARNR = NAST-PARNR
                                AND   PARVW = NAST-PARVW
                                AND   NACHA BETWEEN '1' AND '4'
                                AND   VSTAT = '1'.
if sy-subrc eq 0.
Re print....
Endif.
Regards
Sridhar

Similar Messages

  • Output type determination in Billing document

    Hi,
    I have a query reg automatic determination of output type in the billing document. The scenario is, For an invoice, two output types are determined automatically for all invoices. But the third output type is determined based on Shipping point. For Example say, output type IFIB should be determined if Sh.pt is A and IFIT if sh.pt is B. This is controlled thru "Requirement" assigned to the output types in output det procedure.
    The problem is, for a particular document IFIB appears though the sh.pt is B, Now i have to find out whether it is determined automatically or manually. I have checked the following
    1. The "manually changed" field is not flagged in the "further data" of this output type. I believe, if it is not ticked, then the output type is determined automatically and no manual change was carried out. Am I right?
    2. When i checked the "determination analysis", I find that the output type with the message "Output ignored (Requirement not fulfilled)". If the output was determined automatically, then "output xxx found" should appear right? When the analysis says it is ignored, then how come it can appear automatically?
    I am confused over this contradictory findings. Plz tell me whether my assumptions stated above are right. Kindly suggest me alternative ways to find out whether it is determined automatically or manually? If it is determined automatically, on what conditions?
    Thanks in advance
    Suresh

    Hi Suresh,
    In an output determination, it may tell  u that the output type is ignored because of un-fulfilled requirement, but it will still automatically appear in Header-> output, but u need to check the actuall processing status, whether is 0,1, or 2. I assume for your case it will be 0 (not processed, meant for manual processing instead), 1 (processed) and 2 (error occurred).
    Another thing which is essential is that, in order to let the system successfully fulfill your determination criteria, u need to assign output type with correct access sequence, for example 1 access sequence by sales org/billing type for output, another 1 is by sales org/shipping point. Or u can simply create 1 access sequence with 2 condition tables.
    After that u need to create condition record for each output type, u do this in t-code VV31.
    By rite, during transaction (issue output), system will be able to search for those condition record and output type will be automatically appear, providing if there is any rquirement routine in your output det. proc (appl = V3) returns TRUE.
    Cheers,
    Benny Andre

  • Multiple Output types to existing Billing document type

    Dear Gurus
    I have a requirement. I need to assign multiple output types to existing Billing document type. But there is only one output type/procedure can be assigned in the Billing document type. My client wants another print output format for the same document type. I can get a new smart form created and assigned to the output type.
    But wher would i assign that to the billing doc type? Or is there any other way out?
    Can u pl help me out?
    Thanks in advance...
    regards
    Gansub

    Hi,
      Create a new output type and assign the new smartform and program and add this new output type in the existing procedure assigned to the billing document type.Maintain the condition record inVV31 for this new output type.So both existing and new output type will be available in the billing doucment to take the print out.
    Regards,
    Gopal.

  • Change in document type while creating billing document from sales order

    While creating billing document from Sales order it is creating with document type RV which is standerd one but i want to change Document type.
    How can i change it?
    Regards
    Raj

    Hi
    If you use another existing document type, check that it has a number range suitable to you.  Else create a new 'z' type and assign an entirely new number range, not used in the other doc types.
    It is useful to make the FI document number the same number.  If I understand from the forums, the FI number range must be external.  Search the forum for this.  It is very useful for the Finance people.
    Kind regards
    Dawn
    Edited by: Dawn Verrell on Sep 9, 2010 4:10 PM

  • To set the "Pricing Exchange rate type" in the billing document

    Hello SAP Experts,
    I have a customer requirement to determine the "pricing exchange rate" as "C Exchange rate determination according
    to Billing date" in Billing documents ONLY for specific Sales Org and customer Country and NOT for ALL sales orgs.. This field is present in the Item level copy control setting.
    This will ensure Exchange rate will be based on "Billing date" and NOT from date copied from Sales order for that specific Sales org.
    Can I write this validation in the Billing document User-exit -RV60AFZC to achieve this functionality? Or there would be some Configuation required?
    If anyone has worked upon this kind of requirement or know the method to achieve this, can you please help me?
    Thanks in advance.
    Umesh Karane.

    In that case, you can try with  USEREXIT_FILL_VBRK_VBRP.  Alternatively, you can also add this logic to your existing routine assigned in Delivery to Billing copy control against the field "Data VBRK/VBRP".  Similarly, for all such copy controls as you mentioned.
    G. Lakshmipathi

  • Error while issuing billing documents

    Hi all,
    I have created a billing document and i wanted to issue it using "VF31" transaction.
    When i enter my no in the billing doc no in VF31 transaction and i run it, i get two errors:
    1) Processing log for program RSNASTED routine ALE_PROCESSING
    2) No recipient found for message type INVOIC in the ALE model
    My output type is "RD00". I went into "NACE" transaction to check the output type for my billing documents and what i see there is there is no form attached to my output type. Is this the cause for my error. And does anyone knows what my second error is all about. I know it is something related to ALE but i can't proceed further checking it since i dont have authorizations to SM59 or BD64 (Maintain Distribution Model) transactions.
    Please do help me in resolving the above two errors so that i can view my print preview of the billing document.
    Kind Regards,
    Mayuresh Ayachit.

    Hi,
    I saw the entire blog which u posted. But still there are issues.
    Steps that i followed:
    1) I went into NACE transaction. Clicked on V3 (Billing).  Selected "RD00" output type.
    2) Then i clicked on "Condition records" and executed the transaction.
    3) My Billing Doc Type is "F1" (invoice).
    4) There i made changes like my selection is based on "BP (Bill-to-Party)". I selected that and the transmission medium as "A" (ALE) and partner field i left blank so it is applicable to all partners. Date/Time i choose 4 (Send Immediately).
    5) Then saved the changes i made.
    Still i am getting two serious errors:
    1) Processing log for program SD_INVOICE_PRINT01 routine ENTRY
    2) ADS: com.adobe.ProcessingException: Problem accessing d(200101)
    Please help me with this guys.
    Kind Regards,
    Mayuresh Ayachit.

  • External Send Billing Document - Issues Generating Body Text in Email

    Have generated output type to email billing document as PDF to customer. I am using medium 5 for 'External Send' and have everything working well - the subject line is correctly showing the company name and invoice number, also the PDF is tagged correctly the same data. The issue I am having is trying to incorporate body text in the email itself. I found OSS note 753622, and it indicates this is not possible but the note is quite old. I have combed internet for solutions on this, and many suggestions seem to point to function module CONVERT_OTF_AND_MAIL but not clear to me that this can be overcome here. Would appreciate any insights if someone has experienced this requirement as well.
    Thanks,
    Jay

    Jason,
    The FM you mentioned CONVERT_OTF_AND_MAIL is only for converting the OTF format to the email format. It has no other role in displaying some texts in the email.
    As already pointed out, it is not possible in standard SAP. You have to go for the custom code in the report program meant for the output type.
    This is the widely accepted and used practice in output world.
    Hope this helps you

  • Defualt Output Types on Billing Document Upon Creation

    Need to know if it is possible through configuration to default specific output types on a Billing Document upon creation. We have created a few SAP Smart Forms for print for SD Billing Documents that typically we would have users set up via transaction VA02 Goto>Header>Output. We have run into issue though becuase these users cannot have access to VA02, so we are looking for an alternative to default the output types so that from initial screen on VA03 the can go to Billing>Issue to Output and select the type. If nt standard configuration does anyone know if this has been done via custom dev.
    Thanks!

    Dear Brendan,  
    If you use VV11 and make the output type default for the given sales order type (key combination)then there is no need to maintain it every time in va02, you can get the output directly in the VF03 >sales document >issue output to.
    Regards
    Sandeep Degave

  • Tax Code in Billing Document Condition Type

    Hi Experts,
    We have found a below issue in our system, could you please guide me if you have any inputs:
    Case1:
    When a Billing document is generate for a condition type ZABC ( Discount Condition Type) which is manually entered in the order ,it  has the tax code populated.
    This can be seen in the condition type display in Billing document and in the accounting document generated.
    I have not maintained any condition record for this condition type.
    Case 2:
    I have a similar condition type Z123 ( again Discount condition type) though for a different pricing procedure but for this
    tax code is not populated. No condition record is maintained for this too, it is manually entered.
    It can not bee seen against this condition type in Accounting document.
    I have compared and check if there is any routine and also the properties of both the condition types.
    Also  i have checked the copy control.
    When I debug it , I see that tax code is fetched from KOMV table.
    My Questions:
    Is KOMV table updated even if the condition type is entered manually?
    From where does the tax code appear in Billing document for a condition type?
    Please help me or guide me where to check on this.
    Thanks for your help.
    Regards,
    Venkat

    Hi Venkata, the tax code you see here comes from the FI setting in OB40..
    however, it depends on transaction in OB40. This is what I know..it's more of an FI concept.
    Can you just check if the Z123 is marked as statistical ?
    Regards,
    Raghu.

  • Create Credit Memo referenced to Billing Document - Condition Types

    Hello,
    I need help on this particular situation, your help would be greatly appriciated.
    I try to create a Credit Memo(VA01) with reference to the Billing Document, but I don't want to see on my Credit Memo a particular Condition Type from the Billing Document. Configuration solution or ABAP solution? and how?
    What the system does now is, it copies all the Condition Types from the Billing Document to the newly created Credit Memo.
    Thank you all

    Hi,
    Create a new pricing procedure without the condition type you donot wish to appear in the credit note. create/ use a different document pricing procedure for the credit note, do the required assignments.. this will meet the requirements
    Regards,
    Ajit

  • Why not all billing documents are posted to CO-PA for condition types?

    Hello!
    I have following problem.
    In transaction KE4I I have configured several condition types to post for specific value fields.
    For some billing types it works but for some doesn't work.
    For all domestic invoices it works but for abroad invoices it doesn't work.
    Billing documents for abroad invoices are also posted to CO-PA but for another value fields, not for that I expect.
    Where is problem?
    I am waiting for help.
    Best regards
    Bogdan

    Hi.
    In both pricing procedures there are same condition types. The only difference was check box "Condition is used for statistics".
    After marking this check box it still doesn't work.
    There are placed the same condition types in all billing documents (domestic and abroad) . So I am supprised that for domestic billing documents field value in CO-PA is calculated for condition types placed in KE4I.
    But for abroad billing documents the same field value is not calculated for the same condition types placed in  KE4I.
    Where is a problem?
    I need help.
    Best regards
    Bogdan

  • Assignment of output type to billing document

    I have a billing document for which output type is not assigned.
    Now, whenever I am trying to take the print by VF02, it is asking for output type. and i am giving any output type, the error is coming that " No output type is assigned to the billing document".
    Please suggest, whether we need to assign the output type to the billing document??

    Hi Praveen,
            <b>You should have a output determination procedure along with the billing type assigned to the output type(for eg: RD00,RD01 etc).Apart from this you should have a valid condition record which you create using VV31</b> in which you can control the key combination by maintaining chosen fields in the condition table which pulls the data as per the access sequence and provide you enough combination(for eg: for a certain sales org and Billing type combination etc )
    In the condition record you define the medium,dispatch time and language and not forgetting the output device as well.
    Hope this info has been useful.
    Rgds,
    Aram K.

  • Need Billing doc. number based on header Output type and also billing docum

    Hi
    I have header Output type and also billing document type.
    will you please help me to get the billing document no. based on above combination, any SAP table, i was aware about the same. but i forgot the table name.
    Thanks
    Vanraj

    Hi,
    Check the Table NAST for the Billing documents associated with the OUTPUT type.
    regards,
    santosh

  • BAPI to change Billing document for output type

    Hi Gurus,
            I need to know if there is a BAPI to change a Billing document SD to add a new output type.
    Thanks in advance.
    Mariano.

    Hi all,
          To be more specific, my requirement is determinate a new output type in the billing document if other output type already was printed, so as I can't determinate automaticaly the output type by standard I need to create a program to insert an output type in the billing document if other one was printed; for that I need to know if there is a BAPI to change the billing document to insert this new output type.
    Thanks,
    Mariano.

  • Billing Document Not releasing to Accounting because of Condition Type

    Hi,
    We have used Sales Condition Type ZSCM(Which is a statistical condition type) in Billing Documents and they are already released to Accounting.Today we have created one more Billing Document with same Condition type ZSCM.But this billing document is not getting released to Accounting?
    What could be the reason? Why it was released to Accounting before with the same condition type ZSCM and why it is not getting released to Accounting this time.
    I am breaking my head to find the possible reasons...kindly help me out to find the problem.
    1.Billing document 90005889 - has value 64.48462- and It has only 2 Items and it was released to accounting
    2.Billing document 90005729 - has value 217.87960- and It has only 21 Items and it was not released to accounting and asking to activate +/- sing in KE4I transaction for the ZSCM condition type.
    Why billing document 90005889 is  released for accounting and why 90005729 was not released to accounting?
    Thanks
    Supriya

    Hi,
    There can be following possible reasons fo the samed :
    1. If the specific GL account is not getting any assignment to CO object.
    2. Also you need to check assignment with VKOA that whichever GL is assigned as per business process of Sales (the account which is going to be credited) and all relevant settings in VKOA.
    3. Pls check all substitutions and validations if any connected with that condition type and GL. Becuase sometimes it may happen that because of calling some other application (for ex. Set or substitution as generally transportation of this element happen with entire hierarchy if you add your substition in the node.) at he time of posting of billing document. This has already happen with our business scenario.
    4. Also check if this sales revenue GL is assinged to any set and if that set is called through any substitution ot validation.
    Pls check all these possibilities and revert.
    Thanks & Regards,
    Taral Patel

Maybe you are looking for