Event R402

Hi ,
I am working on a utilities project.
I want to create a contract account document while the invoice is created and should be included in the same invoice.
We have event R402 to create the document and include in same invoice. Can anyone please demonstrate the use of this event with example so as to how i can create a document of type donation (Main Transaction 0100, Sub Transaction 0235, Document Type DO) in event R402.
Regards,
Arun Devidas

Hello
do the follwing
Append you Data
   APPEND wa_fkkopk TO wa_vkk_doc_r402-n_fkkopk.
Add the Data in the export table
  PERFORM update_vkk_doc_id_r402 TABLES t_vkk_doc_id
                                USING co_vkkdoc_main (   VALUE 'A')
                                      wa_vkk_doc_r402. ( DATA: WA_VKK_DOC_R402    TYPEISU21_VKK_DOC_R402.
Coding
FORM READ_VKK_DOC_R402
           TABLES
             XT_VKK_DOC_ID_R402 TYPE ISU21_T_VKK_DOC_ID_R402
           USING
             X_DOC_ID           TYPE ISU21_VKK_DOC_ID_R402-ID
             X_BELNR            TYPE ISU21_VKK_DOC_ID-TMP_BELNR
             Y_VKK_DOC          TYPE ISU21_VKK_DOC_R402.
  DATA: H_VKK_DOC_ID_R402 TYPE ISU21_VKK_DOC_ID_R402.
  READ TABLE XT_VKK_DOC_ID_R402
                INTO H_VKK_DOC_ID_R402 WITH KEY ID = X_DOC_ID
                                         TMP_BELNR = X_BELNR.
  IF SY-SUBRC = 0.
    Y_VKK_DOC   = H_VKK_DOC_ID_R402-VKK_DOC_R402.
  ELSE.
    CLEAR Y_VKK_DOC.
  ENDIF.
That all

Similar Messages

  • Issue in event R402 of Billing & FI

    Hello all
                 We had done a development in event R402 for FI in 4.6C version , where we DID NOT pass any data to
    Y_VKK_DOC_NEW - T_FKKCL[ ]   , as it was not required and it was working successfully.
    But now we have upgraded system to  ECC 6.0  , where it is giving me an error saying 'Internal Error during construction of clearing document ' . When i debugged it , i found that  it checking if theinternal table T_FKKCL is empty or not.. in my case i am not passing any data , hence it is giving me error..and during tcode EASIBI  invoicing gets cancelled.
    Please tell what data should i passs to internal table T_FKKCL.
    Thanks & Regards
    Nilesh

    Hello
    The problem is solved.
    Thanks Bill for your direction.
    After lot of debugging of std code n scratching my head i came to know abt it.
    Actually the problem was not due to the data in FKKCL structure. But in ECC ,  in R402  , after splitting up the line item if you pass the records with amount 0.00 it will give an error. so In the FM you need to eliminate the line items with amount 0.00 (BETWR) .
    Cheers
    Nilesh

  • Creating 2 FM's in one event

    Hi,
    I have a requirement in which i am supposed to have 2 seperate FM's in event R402 (TR: FQEVENTS).
    There is one FM already configured in Installation specific FM.
    I need to add one more FM into this ?
    Can this be done ?
    Regards,
    Imran

    copy that function module : FKK_SAMPLE_0402
    and make it Z and then add ur code at the end of this function module
    after that attach it in FQEVENTS - 402 and u will be able to call it.
    reward points please...

  • Event to change Posting Date in invoice (ERDK table)

    Hello,
    We are using events R402 and 0062 to change the posting date, which works fine for FICA, but does not change the posting date in Invoice document.
    I was trying to find an EVENT to change the BUDAT posting date on Invoice (ERDK).
    Thanks.

    To handle this requirement you can use FICA Event R999.
    In this event you have access to the whole Print Document object which contains the billing documents that makes the invoicing unit (print document), the posting date and the scheduling date.
    Regards,
    Siva

  • IS-U INV: Creation of FI-CA documents during invoicing

    Hi,
    I need to create a couple of FI-CA documents during invoicing process. I found the Event R402, is there possible to create more then one FI-CA document?
    Thanks for answers.
    Vlado

    Vlado:
    The R402 event only allows for one document.  You can populate the one document with multiple lines representing various scenarios if necessary.   If multiple docs are required, then you need to explore additional events - and likely need to create logic for reversal scenarios.  Implementing all of the posting in R402 enables standard reversal integration.
    regards,
    bill.

  • IS-U INV: Maintenance of FI-CA document during invoicing

    Hi,
    I create the FI-CA document during invoicing process using event R402. This document is created consistent without any problems. Unfortunately during automatic account maintenance this document is not taken into account.
    I debugged this problem and in the function module ISU_INV_ACC_MAINTENANCE I found some condition where if the document number of the FI-CA document is not assigned (initial) then this document is not taken into account. How can I solve this problems?
    I need to realize account maintenance with the NEW created FI-CA document during invoicing process? Any suggestions?
    Thanks
    Vlado

    Hi Vlado,
    You need to maintain the main transactions of the particular document in the following configuration setiings under the billing settlement type-
    SPRO->SAP Ultilities->Invoicing->Invoice Processing->Item Selection In Invoicing->Item Selction in Account Maintainenace/Define sub items.
    To carry out account maintenance in invoicing, you must select all open items you want to take into account in this activity. The open items generated in invoicing are subject to this selection procedure.This depends on the billing settlement type for the invoicing unit.
    The selection is dependent on the settlement type of the invoicing unit.
    Note-If you maintain a particular subtransaction, along with the main transaction,then the particular set of main\sub combination will only be valid for account mainatinenance. However, if you maintain only the main transaction, all the sub transactions under the main will be picked up for the account maintaineance during invoicing.
    Hope it helps....
    Thanks,
    Amlan

  • How to create an incentive same as LPC and PPI in ISU.  Any help from the experts as it is an urgent requirement of the client.

    How to create an incentive same as LPC and PPI in ISU.  Any help from the experts as it is an urgent requirement of the client.

    Hi,
    It depends on fact that when you want to create the incentive.
    If you want to create at the time of invoicing, then you have to enhance event R402.
    If you want to create at the time of payment, the you have to enhance event 0032.
    Hope it helps
    Thanks,
    Amlan

  • Photostream active on two accounts

    Hello all,
    the System:
    Mac Book Pro
    OS Lion
    iPhoto 11
    two Accounts (both with different Apple ID´s)
    I did share iPhoto so both accounts do have the same iPhoto mediathek.
    Now i want to activte the photostream from the second account and deaktivate it from the first account, but i cant. It is not possilbe.
    So, does anyone have an idea how to activate the Photostream from the 2. Account?
    Kind regards
    Georg

    Hi Bill,
    Thanks for the ideas. Ill try to clarify the request a bit more:
    - When using tax code with both incomming and outgoing tax, I can specify one account for each tax posting. Simplified, one item only: the system posts base amount + tax amount to the income account (1), tax amount to the outgoing tax account (2) and the negative tax amount to incomming tax account (3). This would be the expected behaviour which would suit our customer needs.
    - By using posting area 0010, I can specify one account only. When I post one item, from the upper example, I get the base amount + tax amount posted to the income account (1), and I get the positive and negative tax amount posted to the same general ledger account (2 and 3).
    Following this, by using event R402 I could have two scenarios:
    - if I use the already mentioned tax code, then I would have to reverse one tax posting and post it to another account.
    - If I use the tax indicator with, for example, only outgoing tax, then I would have to make posting to the income account (because then the original posting to the income account would be base amount only) and incomming tax account.
    Both ways, I need to have two additional posting items.
    Marko

  • Processing Rebates on specific charges in invoicing

    Gurus,
    I have a requirement at this client where we are required to provide a rebate (%) to all its customers for a specific set of consumption charges, Manual billing document charges and taxes . It's not on the total bill amount but we need to provide rebate % on specific set of charges after calculating taxes on these charges. This rebate % needs to be displayed on the bill.
    Can you please help  me out in handling this?
    Thanks,
    Sachin

    Hi Sachin,
    The only way to met your requirement is to have the field XBLNR as blank.Once this field gets populated, there is no way to stop reversing the rebate charges during the invoice reversal.
    The approach that I have talked about in my previous post, was in similar lines to a credit document with locking its  corresponding XBLNR field so that the print document doesnot gets updated.However,in that scenario, you need to pass the document no. in the export parameter Y_VKK_DOC_NEW.
    Another approach would be to use event R433.
    Event R433 can complete additional actions initiated by previous events. The system makes available the contract account A/R and A/P documents, inlcuding the allocated document numbers created in IS-U invoicing.
    So,when event R433 is triggerred, you already have the FI-CA credit document and the print document no.
    Take the respective FI-CA credit document no. and update its corresponding reference field (XBLNR) as space\blank.
    For performing the above activity, first you need to mark the FI-CA credit documents against a global variable, in event R402, and then in event R433, perform the acitivty against only those documents which have a global variable marked against them.
    Hope it helps....
    Thanks,
    Amlan

  • Low Income Program Enrollment

    Hi Experts,
    We need to address one requirement in which - customer sees information about pldge donation on a regular utility bill/invoice. He/she sends enrollment form to utility company (with invoice amount + donation amount [donation amt for first month only] check attached). We need to updated this information in our database then we need to charge that customer evey month for that fixed amount (so we need to send him invoice of = donation amount + his regular invoice amount). Whats the best way to address this requirement? I believe it involves some SAP customization. I would like to know what is the best approach to solve this problem.
    Please let me know if you need more information. Thanks.
    Kind Regards,
    Nikhil

    Hi Nikhil,
    Elaborating on William's post, you can store this pledge donation amount at the contract level.
    You need to create a custom table containing the following-
    (a) Charge Code
    (b) Charge text
    (c) Amount\bill
    (d)Vaild from\valid to
    You need to enhance the screen exit EMDK0001, so that it gets reflected in the contract screen.
    During invoice posting,event R402 is called and it will check whether any pledge donation amount is assigned against  the contract or not. If yes, it will post a FICA document.These will then appear on the customers invoice as a separate line item.
    Hope it helps
    Thanks,
    Amlan

  • Billing with gross prices

    Hi experts,
    I´m working with gross prices in billing, but i have a doubt about the difference between the amount calculated with gross prices and the amount calculated with net prices. I´ve specified a difference of $1 peso and determined an account in R402.
    If the difference takes places, let´s say $1 peso, what happens with this difference?
    It goes to the account?
    Thanks for everything
    Regards,
    Manuel

    Hi,
    The calculation with gross prices will always produce some differences comparing to the netto calculation. The reason is simple, in calculation with netto prices the VAT will be determine from the sum of the all netto lines during invoicing (EA19). In calculation with gross prices this happen in billing  (EA00) and determination is for each line.
    Event R402 enables you to add new business partner items and G/L account items to the contract accounting documents that are generated in invoicing and posted in contract accounts receivable and payable. Simply you will get new posting item for the calculation differences.
    From my point of view this solution could work in your situation.
    I hope that this advice will help you.
    Vlado

  • Training and Event Management - report on list of cancelled courses

    Hi All,
    Is there any standard report available to get the list of cancelled courses (be it business event grp , type or business event) Would appreciate your inputs on this.
    Kind regards
    Sathya

    S_AHR_61016216 - Cancellations per Attendee , i think there is no standard report for cencelation of business events, type and group.
    for cancellations per attendee reports is available in the system.
    good luck
    Devi

  • How can I see Calendar event END times at a glance?

    How can I display my Calendar event titles exactly as I type them? I do not want Calendar to remove duration from the titles of my events. Otherwise I can't see event END times at a glance in month view; only start times. How can I "trick" Calendar to just show my titles as I type them - as I always could before I upgraded. I used to be able to enter "Seminar 9am-5:45" and it would appear that way regardless of how or what I chose to enter (or not enter) for duration.
    I am running OSX 10.9.3.

    It's a bit weird, but if you type in the time info TWICE into the event title then Calendar uses/deletes one of them to populate the event details and leaves the other.
    Apple - Mac OS X - Feedback

  • Event List view in iCal?

    I would love to have an Event List view in iCal like I do on the calendar on my iPhone. Is there such a thing? The particular reason for wanting it (this time) is that one of the calendars in the ON MY MAC list has a number in a oval to the right.
    I believe this is trying to tell me that there is a new event that I need to do something about. Problem is, I don't know where to find it.

    ecernek,
    There is no event list option on iCal like the one on the iPhone.
    That number means that you have an event invitation. Use iCal>View>Show Notifications to choose what to do with the notification.

  • Can I show a color bar instead of a color bullet in iCal Monthly view for all my events in all calendars?

    In the Monthly view of iCal the only events that show a color bar in the event is the Birthday Calendar. All other events in all my other calendars only show a color bullet next to the event (unless I click on that event which then shows as a color bar). I would like to know if it is possible for all the calendar events to have a color bar in the monthly view instead of just that tiny color bullet.

    Greetings Judith,
    Before making any attempts at deleting calendar data, backup what you have just in case:
    Click on each calendar on the left hand side of iCal one at a time highlighting it's name and then going to File Export > Export and saving the resulting calendar file to a logical location for safekeeping.
    iCal has an automated function located in iCal > Preferences > Advanced > Delete events "X" days after they have passed.  By typing in a value for days you can tell iCal to delete all events before that time frame.
    Example:
    Today is 4-16-2012.
    If I wanted to delete all events prior to 1 year ago (4-16-2011) I would type in "365" for the number of days.
    Once you type in the number of days you want kept in iCal, close the preferences and then quit iCal.
    Re-open iCal and check to see if the events are gone.  If not you may want to leave it open for several minutes and then quit again.
    Once the events are removed go back to  iCal > Preferences > Advanced > Delete events "X" days after they have passed and make sure the check mark is removed to prevent future deletion.
    Hope that helps.

Maybe you are looking for

  • Title header in Numbers 3.0

    How do I place a title header on my Numbers 3.0 spreadsheet so that it shows up at the top of each printed page?

  • How do I add attachments to a Captivate 7 eLearn?

    Articulate has an Attachments button in the player window.  In Captivate 7 -   I want the user to click a button and the attachments window appears for them to download a document/PDF. I can not find anything in Captivate to add that into the eLearn.

  • Can a iPad iso 5.1.1 upgrade to 6.0

    Can and I pad iso 5.1.1 upgrade to 6.0

  • T410/T510 DisplayPort features audio!!

    After calling with a member of the lenovo sales team, i have an important news for many interests i think: The new Thinkpad T-series will not transport audio signals through the DisplayPort to get digital audio on a television through an HDMI adapter

  • Credit/ debit

    hai all  ,     iam working in ABAP      iam having one query .i.e  in BW i have to display credit / debit values seperately in two fields  in BW update rules. how i can would write this in update rules .. plz help me .. tanx in advance .. satya .....