Revenue recognition through RA

Hi CO and RA Gurus
Does any one know how to do Revenue Recognition using Result Analysis Keys.
thanks
KT

Hi,
Result Analysis:
Overview:
The objective for calculating Work in Process (WIP) is to determine the value of manufacturing activity in process at the end of a fiscal period, during a fiscal period and to properly reflect this value on the financial statements. WIP calculation is a facet of Results Analysis (RA). RA is a specialized tool within the controlling module that computes and analyzes the value of WIP. The terms WIP calculation and RA are generally interchangeable.
Results analysis is used to:
a. Calculate the inventory value of finished and unfinished products in a non-valuated project stock or non-valuated sales stock environment or
b. You are using a valuated sales order stock or valuated project stock and want to capitalize goods that have been delivered but not yet invoiced.
The difference between SAP and other systems is in the treatment of material consumption for manufacturing. Component issues to production orders, run schedules, WBSs, etc is immediately treated as an expense to the P&L statement. The issue is not treated as a reclassification from raw or semi-finished inventory to WIP inventory. SAP considers WIP to be a snapshot of values that can be computed on demand and passed to the general ledger as required to re-class the values to the balance sheet. This process demands a specific, methodical approach to be used for period-end and mid-period processing. Rules used to calculate the value of WIP and settle WIP to the G/L are defined in multiple RA tables depending upon the requirements of the company. RA is designed to support a variety of calculation techniques and there may and are alternate settings depending on the demands of the company. To support the configuration, scenarios and unit testing need to be thorough. RA needs to be configured towards the middle of the of the implementation with subsequent testing. This will allow for configuration of the data needed to support WIP and RA (chart of accounts, production orders, projects, cost centers, cost elements, etc.)
Configuration Transactions:
OKG1 u2014 Create Results Analysis Key
OKG2 u2014 Results Analysis Version
OKG9 u2014 Results Analysis Version
OKGC u2013 OKGD u2014 Valuation Methods
IMG SPRO u2014 Define Line IDs
OKGB u2014 Define Assignment Mapping by incoming charges by cost element to line IDs
OKG5 u2014 Define Assignment Mapping by incoming charges by cost element to line IDs
OKG4 u2014 Define Update
OKG6 u2014 Define Number Ranges
If your done with RA configuration and posted actual cost,plan cost and plan revenue.
you can calculate revenue recognistion using KKA2 T.code for projects.
Hope this helps you.
Thanks,
Rau

Similar Messages

  • Service Based Revenue Recognition - Prov Account Missing when using WBS

    Hi,
    I´ve activated RR functionality using service based and aceptance date.
    I've followed the intructions from the best practices documents and the notes:
    Note 820417 u2013 IMPLEMENTATION GUIDE FOR REVENUE RECOGNITION
    Note 1172799 u2013 NEW VERSION OF BEST PRACTICES FOR REVENUE RECOGNITION
    Note 678260 CONSTRAINTS
    Note 777996 u2013 ACCOUNT SETTINGS FOR  REVENUE RECOGNITION PROCESS     
    Note 779366 u2013 REVENUE RECOGNITION IN THE SD MODULE
    Note 1166848 u2013 CUSTOMIZING SETTINGS
    Note 782758 u2013 PREREQUISITS FOR USING REVENUE RECOGNITION
    Note 835367 - Activating SAP ERP SD revenue recognition
    Note 1000830 - Revenue recognition through incoming invoice (third-party
    Note 1025066 - Revenue recognition by proof of delivery (POD)
    Note 1120297 - Revenue recognition by acceptance date
    Note 1125456 - Revenue recognition due to customer-specific event
    We are implementing SD, FI (using New Gral Ledger), PS, CO and MM in a company that sells projects. Therefore we're posting everything to the WBS elements.
    We need to post the revenue values to the WBS elements too.
    The problem is that when we create a sales order for RR indicating a WBS element and try to save it, the system activates the incompletion log saying that the provision account is missing, despite the account is in VKOA.
    The strange thing is that if we use a material with profit center (without any WBS or order indication in the sales order) all the revenue recognition process runs perfectly (we save the order, VBREVK is fullfiled, VF44 is run and the invoice is done correctly).
    Does anybody know why when using a WBS element in the sales order, SAKN2 field is not fullfiled and the incompletion log is activated???
    Is it a program error? Or are we doing something wrong?
    Quick responses will be apreciated since we need to move on within two weeks!
    Thanks in advance!
                                     María del Valle Pintor.
    Moderator: This thread has been locked due to crossposting.
    Please do not post the same question in different forums.

    sap note 883544

  • Revenue Recognition Functionality through Result Analysis (RA) key

    Hi all,
    We have a requirement for Revenue recognition, Can anyone guide me Revenue recognition functionality through Result Analysis (RA) key  and functions of RA Key .
    Regards,
    Lal Maheswararao

    Hi Makrand,
    Thank you for your Valuable reply. Actually I am looking Specifically for the Revenue Recognition functionality in Cloud computing Business Scenarios. Like the income has to be recognized over the period of time on the basis of service provided. And it should calculate Percentage of completion for calculating revenues and Cost and how much profit it has to be recognised over the period.
    These functions will possible through Result Analysis method. but i have very limited knowledge about RA method.
    Can you please explain in general how Result analysis method will work and if possible with necessary configuration.
    Regards,
    Lal Maheswararao

  • Revenue Recognition (AR Closed for future month in error)

    Need help with revenue recognition. In the month of June in AR July was opened in error, so it was put in to close pending. Since July was closed the last 3 days worth of June invoices did not have any revenue recognition for July. Instead July's revenue was posted in to August since August was showing as a future period, and July was closed. Is there any fix to change the revenue recognition without doing a credit and rebill of 3 days worth of invoicing? If we reopen June, and run revenue recognition again, will that help? Thanks in advance for any help.

    Well there are a few ways you can go ahead and fix this, but it depends on lot of factors.
    Lets say you have 1 invoice for which the revenue has been recognized in August and not July, now you can query up that invoice in the transaction's workbench and incomplete it. After incompleting all the revenue recognized distributions would be deleted(applicable 11.5.10 onwards) and when you complete the invoice again & run the RR program the revenue would be recognized in July(provided it's in an open status). Please note though that you can incomplete a transaction only if it doesn't have any activity against it!
    Now coming to the real world it's possible that the number of transaction's you have could be quite large and doing this manually through the screen might not be feasible. So you could possibly write a small pl/sql script to loop through those invoice's and incomplete them by calling the complete/incomplete group transaction's api. And then again complete them and re-run RR program to complete the fix.
    Please note though that you can incomplete a transaction only if it doesn't have any activity against it!
    With posted transaction's or transaction's having other activity, it's possible to fix them too but that would be taking things too far and Oracle Support/Development would be best equipped to provide you the fix in that scenario.
    HTH,
    Jasmeet.

  • Pricing procedure not to bill customer but revenue recognition

    I'm looking for guidance on how to setup a pricing procedure conditions.   First let me explain the situation.  What happens is the customer buys say 2000 software licenses on a sales order. The customer is billed and the customer account is debited and a deferred account is credited. Now the customer activates one of the licenses. The pricing from the sales order is copied to a contract. This contract has a start and end date for the license. Now that license can start to be recognized based on the period of the line item contract dates.. The issue we have is that normally for deferred revenue billing takes places. Problem is customer was already billing on the sales order. Somehow the pricing procure has to credit the deferred account that was posted on the sales order and then credit the revenue recognition account that can be used by transaction VF44.
    So on the invoice associated with the sales order Invoice  from sales order
    Dr Customer $1000
    Cr 2370 $1000
    The account 2370 is the deferred account. This part is fine.  
    Now we activate 1 of the licenses.
    So the pricing procedure has to do the following with no billing to the custo0mer account Invoice from contract
    Dr 2370 $120
    Cr 2371 $120
    This is the problem part. crediting the deferred account 2370 and then posting into the revenue recognition account 2371
    Rev Rec – VF44 for Period1
    Dr 2371 $10 Cr 4340 $10 Any ideas would be appreciated

    Hi
    In SD billing documents customer is always debited or credited based on nature of transaction. For posting in two different G/Ls instead of customer account there is only one possible way which I know. In free goods pricing system can post debit and credit entries to different G/Ls and these G/Ls are controlled through account keys which you assign to condition types in pricing procedure.
    Do you have any Idea of free goods pricing and its posting? Explore this and give it a try. I am not sure about this because I didn't test this. You can test and see if it helps.
    In this for contract item category you have to use free goods pricing which you set in item category settings in VOV7.
    Thank$

  • Revenue Recognition BADI or user exit or BTE

    Hi Experts,
    We do have a requirement where once a Payment is processed through F-28 Transaction, the system should automatically release the Revenue Recognition Block ( Table VBREVE - Field REVPOBLCK ) on the Billing DOcument. Currently it is getting cleared manually through VA44 transaction. We need to Make the process automatic. Any user exit or BADI or BTE available for the same?
    Thanks
    Tirthankar

    you could check the business transaction events (Transaction FIBF)
    mainly the Process-BTE's 00001120 or 00001140.
    Guess they are processed in the F-28 like in other FI-transactions

  • Item Category--Revenue Recognition

    Dear All,
    system is not allowing me to assign revenue recognition field in VOV7 as it is grey field.
    As well when I tried through IMG/S&D/Basic Function/Account assignement/Revenue Recognition Item Category-Change mode system is showing grey field for revenue recognition here also.
    Please guide on how can I assign here.
    Regards,
    Sainath

    Hi,
    In order for this to work, the revenue recognition functionality has to be activated in the system (because of important financial implications and risks, it isn't activated by default).
    You need to raise a message to SAP for this.
    Please check OSS note 820417.
    Best of luck,
    Cosmin

  • Revenue recognition in Item category

    Dear All
    Can you advise what exactly is revenue recognition in item category?.
    I need to enter A in the field, but the field is greyed.
    Thanks
    Deepu Pillai

    Dear Deepu,
    The Concept of "Revenue Recognition" in Item Category is -
    The material, with specified Item Category, is defined for income-accrual or not.
    Now, Income-accrual means, say, in a month, you have "n" no. of orders to deliver, but might possible that Invoice and Payment, may get done or may not be.
    So, to realise such income for a particular period, we run revenue-recognition (VF44). In VKOA, we maintain "Provisional Account" for such income.
    Once invoiced, Accrued income G/L gets debited and Customer G/L gets credited.
    [Revenue Recognition|http://help.sap.com/erp2005_ehp_03/helpdata/EN/4d/fcd139f6e4cf2ce10000000a114084/frameset.htm]
    As you asked for maintaining - Type "A" in Item Cat., go through
    [Time related Rev. reco.|http://help.sap.com/erp2005_ehp_03/helpdata/EN/59/aff23cd85c11d199d60000e8a5bd28/frameset.htm]
    Another Type is "B"
    [Service related Rev. reco.|http://help.sap.com/erp2005_ehp_03/helpdata/EN/59/aff23fd85c11d199d60000e8a5bd28/frameset.htm]
    Best Regards,
    Amit
    Note: There are few of my posts in threads
    Re: Revenue recognition
    Re: Revenue recognition design
    this will provide some in-sights for rev. recog.

  • Revenue recognition job hangs and needs reboot of servers

    We are on SAP BPC v7.0 SP6.1, using Microsoft Office 2007 and Internet Explorer 7.  We have two environments - Production and QA.  Production so far is running fine; QA is on a smaller environment. 
    I am an application user and load final production files into QA each month.  For the past two months when trying to run the revenue recognition job for April 2010 and again for May 2010, the job just hangs where it would normally take about two minutes to complete.  Both times it was the only job running at the time, as no one was using the QA environment.  I had to terminate the job (which might leave the job running in the background) and have our Server team reboot our two servers (Application and SQL Server Analysis Services).  Then the revenue recognition job completes.
    Depending if I terminate and resubmit the revenue recognition job, I might get the following detail log message:
    Execute formulasError
    Failed to commit transaction
    1 errors writing data
    Send through SendGovenor failed
    Last week, our DBA set the QA databases to Simple instead of Full recovery and shrank the transaction log files.  I ran a test revenue recognition for July 2010 and the DBA tried to monitor the environment, but he could not see any job committing or any activity on the database.  I ended up rebooting our servers to complete the test.
    Has anyone experience similar problems and was able to resolve it.  Any ideas would be appreciated.  Thanks.
    Bucky

    Hi Sorin Radulescu,
    I load the initial billing file using the Import logic script and select the data file and transformation file.  I click on the Merge data values option; click No to run default logic; and click No, do not check work status settings.  Once the import completes, I run the revenue recognition logic for the accounts and periods I am working with.
    I compared our Production transformation file, default logic script (which I am not running), and revenue recognition logic script to QA and they both match.  My problem is when I run the exact same revenue recognition job in QA, the job just sits in running status but should finish in a couple of minutes.  I would let it run for a couple of hours in QA, then terminate the job and have our two servers rebooted, then the same revenue recognition job runs to completion within a couple of minutes.
    I am just wondering if there could be some other setting that does not let the job submission kick off the actual update to the database.  To make sure the database was not hosed from the terminated revenue recognition job, I ran a different but smaller job and it completed.  Then I would ask for the reboot and resubmit the revenue recognition job and it completes.
    I will let our DBA know about monitoring the dllhost.exe for amount of memory used.  But the last time he tried to check for any activity on the database he could not see anything, but I do not know if he was checking dllhost.exe or some other files.
    Thanks for your response and suggestions.  Since this is our QA environment (which I try to keep current with Production), I am trying to see if I can identify the cause and fix it, in case it carryover to our Production environment.
    Regards,
    Bucky

  • Revenue Recognition Process in Oracle Projects

    I am new to Oracle Projects and needs to understand the Revenue Recognition process.
    User has created one Contract under which he has Intercompany Billing, Costing and Elimination Projects. He booked the cost under the Costing project and then ran a custom elimination program to eliminate the intercompany cost. Now he is going to the billing project and running the 'Generate Draft Revenue' program however nothing is getting generated. He wants to know why revenue is not getting recoginised.
    Is it the correct way of recognizing the revenue. The Distribution rule being used is Event/Event however no event has got created in the billing project to recognize the revenue.
    Please suggest.

    Hi ,
    The subcontracting process can be exceuted in the following way..
    The modules involved will be PA, PO, AP..
    This can be handle with the P2P cycle..
    Raise a servie PO with the project information in the PO distributions for the service that needs to be subcotracted..
    specify the matchig option in the PO Shipments
    Enter a receipt (Optional)
    Enter a AP invoice and match it with PO or receipt as per the requirement and then run PRC: Interface supplier costs..
    this will post the expenditure in the Projects.
    In addition to the above i fu have complex PO (with helding some portion of the order amount as retention, advace payment to be provded)
    this can be handled through creating the PO through selfsevice PO which accomodates this functionality.l
    Thanks
    Vijay.

  • Revenue Recognition in Russia

    Hi,
    we are rolling out our global SAP solution for Russia and I would like some valuable inputs from SAP Gurus to my query.
    My query is regarding revenue recognition in Russia. According to local GAAP, unless a signed copy of the TORG-12 (Act of acceptance of the transfer of goods) is received from the customer, it cannot be considered as revenue for accounting purposes in Russia, whereas for US GAAP purposes revenue can be recognized once the goods have been delivered.
    US GAAP is the leading ledger and Russian GAAP is the non leading ledger but it is not possible to release billing to accounting for the leading ledger only.
    Another point to note is that Russian accounting is based on actuals and no accruals can be posted for revenues.
    Pls. can someone provide me some insight as to how these two requirements were handled together in their projects within SAP.
    We are on SAP ECC version 6 ehp4.
    Thanks in advance for all your help.
    Regards,
    Nitin

    Dear Deepu,
    The Concept of "Revenue Recognition" in Item Category is -
    The material, with specified Item Category, is defined for income-accrual or not.
    Now, Income-accrual means, say, in a month, you have "n" no. of orders to deliver, but might possible that Invoice and Payment, may get done or may not be.
    So, to realise such income for a particular period, we run revenue-recognition (VF44). In VKOA, we maintain "Provisional Account" for such income.
    Once invoiced, Accrued income G/L gets debited and Customer G/L gets credited.
    [Revenue Recognition|http://help.sap.com/erp2005_ehp_03/helpdata/EN/4d/fcd139f6e4cf2ce10000000a114084/frameset.htm]
    As you asked for maintaining - Type "A" in Item Cat., go through
    [Time related Rev. reco.|http://help.sap.com/erp2005_ehp_03/helpdata/EN/59/aff23cd85c11d199d60000e8a5bd28/frameset.htm]
    Another Type is "B"
    [Service related Rev. reco.|http://help.sap.com/erp2005_ehp_03/helpdata/EN/59/aff23fd85c11d199d60000e8a5bd28/frameset.htm]
    Best Regards,
    Amit
    Note: There are few of my posts in threads
    Re: Revenue recognition
    Re: Revenue recognition design
    this will provide some in-sights for rev. recog.

  • SD Revenue Recognition-Account settings for deferring COGS

    Hi Experts
    In the current process, COGS, cost of goods sold is getting posted into the COGS G/L account, while creation of billing document.
    In VF44 transaction, we find option for VPRS cost being captured against every line item & are available for posting along with revenue line.
    In that case, if we have to defer the COGS while creating the billing document & would recogonize it while running VF44 alone with the revenue lines, could you suggest me the account setting to be done for the same?
    Anticipating earliest responses
    Thanks
    Banu

    hi
    820417 - Implementation Guide for Revenue Recognition
    779365 - Best Practice document for revenue recognition
    REVENUE RECOGNITION
    In revenue recog. you can create your billing documents and they will be passed to accountings.But in this case your customer account would be debited and deferred accounts would be credited.
    The purpose of revenue recognition is that you can post all the revenues from a deferred account to sales revenue account for a particular period together for all the docs. through transaction VF44.
    if you can se your sales docs no. in VF44,then your revenue recognition is successful.Press on collective processing inside VF44 for posting the revenues from deffered acc to sales revenue account.
    Configuration part includes the setting of revenue recog. in item category by following the path sd-basic functionsaccount assnmnt/costingrevenue recog.
    Then you have to assign G/L accounts.In the first column of assigning g/l accounts ,enter your sales revenue account and in the second column enter deferred revenue accounts.Deferred revenue account is a spcl g/l account.
    Don't forget to enter reconcilliation account in your customer master as well.
    It may happen that in revenue recog item categories fields may greyed out but you have to get authorization for your id from a basis guy.
    :The point at which revenue (income) is credited to a revenue account in General Ledger. There are three possible types
    Time-based : Revenue is recognized in equal proportions between specific start and end dates based on the number of posting periods defined at the company level. Revenue recognition for time-based documents can occur before, during, or after the invoice process.
    Performance-based : Revenue is recognized based on the occurrence of certain events such as goods issue or the performance of a service. Revenue recognition for performance-based documents can occur before, during, or after the invoice process.
    Standard : Revenue is recognized at time of invoice:
    The specified item was not found.
    Re: Revenue Recognition
    CONTRACTS
    Lets take standard CQ contract type:
    First maintain customer - material info record in VD51 T-code
    Secondly maintain pricing for customer / material or only material combination in VK31 / VK11 T-code
    Then use VA41 T-code to create a contract
    VA42 to change contract
    VA43 to display / view contract
    In VA41, enter the document type CQ, followed by the sales area details,
    Enter Sold to party.
    Enter PO number
    Enter PO Date
    Enter Validitiy from Date
    Enter Validity to Date
    Enter Material
    Enter Quantity say 999,999,999 or any other higher quantity as it is referred again and agaain
    Hit Enter.
    Save.
    regards
    balajia

  • Revenue recognition and error message" Missing data: Provision account Message no. VU019

    Hi,
    I have configured revenue recognition type "B" for my item categories and I am using BOMs where pricing is set at item level. The issue is that when I have more than one components in my BOM then I get an error message (Missing data: Provision account Message no. VU019) at the time of saving sales order though I have configured the provision account. However If I enter the same component/material in the sales order without BOM which will have same pricing data then it does not through the above error message. Please help what could be the potential issue.
    Best Regards
    Javed

    Have you checked the Analysis from condition tab once you created a BOM?  If so, what is the message you could see for pricing.
    G. Lakshmipathi

  • Revenue recognition has been executed twice

    HI all
    G/L Balance is not correct as below.
    It looks that some of revenue recognition has been executed twice. There are both items that revenue recognition has been executed twice and items that revenue recognition has been executed once within the same sales order.  I have no idea whether there is any pattern exists or not.  This issue needs to be solved by today .
    what could be the reason, can any one help me on this.
    Thanks in advance,
    Raju

    Hi Raju,
    Can u explain us in detail,
    It can be the reason like if the revenue recog is replicating through some nightly job, there r different cases it may ran twice(relication has done twice).
    Best regards
    Bhupathi.

  • Revenue recognition - deferred revenue

    Hi Experts,
    We want to recognize some of our revenues other than the billing date.
    Some of our sales are by sea and using CIF incoterms, so if the goods was sent during the last days of the accounting period, we can not recognize it in the FI reports till the goods arrived it's destination.
    So I want to do the PGI and the billing today and credit the deferred revenue account instead of the revenue account.
    I saw the SPRO regards it.
    1. What are the specific setting I have to use in "spro, sales and distribution, basic function, account assignment/costing, revenue recognition, set revenue recognition for item category" for this case? (time related/service related/billing related...etc)
    2. Can I use regular sales order, delivery, PGI, billing document or do I have to use contract or something else?
    3. Can the trigger be the incoterms/destination country instead of the item category?
    Thanks
    Ifer

    Symptom
    After you implement Note 1239165, the source code prerequisites for connecting the accruals account determination to the incompletion log in the standard system are met. This note describes the Customizing settings that you have to make to use the functions described in Note 1239165.
    Other terms
    Standard revenue realization, Customizing, incompletion, KONV, SAKN1, SAKN2, ZZ_RR_TVUVF, RV_INVOICE_ACCOUNT_DETERM, RR_ACCOUNT_MISS_DEF, RR_ACCOUNT_MISS_UNB, TVUVF, SAKUR, TVRRUR
    Reason and Prerequisites
    The Customizing settings are required to use an error group in revenue realization to specify the incompletion and to prevent the system creating subsequent documents.
    Solution
    Make the following settings:
    1. Create the following procedures in Customizing:
    Sales and Distribution -> Basic Functions -> Log of Incomplete Items -> Define Incompleteness Procedures -> Incompletion Group B (Sales - Item) -> Procedures ->
    -> RR (text RevRec item). Save your entry.
    2. For the accruals account, create the following status group:
    Sales and Distribution -> Basic Functions -> Log of Incomplete Items -> Define Status Groups
    -> Status grp General Delivery Billing doc. Price Goods movement
       RR        X        X         X             X
    Additional information: The revenue accounts are assigned to the status group 00 through the error group "MP". This status group permits subsequent documents to be created.
    3. It is not necessary to assign the incompletion procedure RR to the item category that is relevant for revenue recognition. In the case of item categories that are relevant for account determination, by default, the system uses the error group "MP" for the revenue accounts and the error group "RR" for the accruals accounts.
    4. Create the report ZZ_RR_TVUVF to execute the entries required to check the fields and to assign the status groups. The report enters the required entries in the tables and in TVUVF. If these already exist, the system issues an error message.
    The following check fields and status groups are entered:
    Table     Field name  Description   Screen Status  Warning Rank
    KONV  SAKN2    accruals account          PKON  RR
    TVRRUR SAKUR    unbilled receivable account       RR
    Attributes
    Title: Insert/delete RR incompletion settings in TVUV and TVUVF
    Type: 1 (Executable program)
    Status: T (Test program)
    Application: V (Sales and Distribution)
    Package: (Customer-specific package)
    Selection texts
    P_DELKZ  Delete revenue recognition records
    P_INSKZ  Create revenue recognition records
    The source code is provided in the attached correction instructions.
    Insert Block 
    *& Report  ZZ_RR_TVUVF                                                 *
    report  zz_rr_tvuvf.
    Tables *
    tables: tvuvf.
    Work areas *
    data: begin of gvt_tvuvf occurs 0.
            include structure tvuvf.
    data: end of gvt_tvuvf.
    data: lvf_subrc1 like sy-subrc,
          lvf_subrc2 like sy-subrc.
    data: gvs_tvuvf like tvuvf.
    ======================================================================
    Definition of the selection screen                                   *
    ======================================================================
    parameters  p_inskz radiobutton group act.
    parameters  p_delkz radiobutton group act.
    ======================================================================
    Initialization                                                       *
    ======================================================================
    initialization.
      clear   gvt_tvuvf.
      refresh gvt_tvuvf.
    ======================================================================
    Selection of data                                                    *
    ======================================================================
    start-of-selection.
      select single * from tvuvf into gvs_tvuvf
                                where fehgr = 'RR'.
                                and tbnam = 'KONV'
                                and fdnam = 'SAKN2'
                                and statg = 'RR'
                                and fcode = 'PKON'.
      lvf_subrc1 = sy-subrc.
      select single * from tvuvf into gvs_tvuvf
                                where fehgr = 'RR'.
                                and tbnam = 'TVRRUR'
                                and fdnam = 'SAKUR'
                                and statg = 'RR'
                                and fcode = '    '.
      lvf_subrc2 = sy-subrc.
    Populate fields
      gvt_tvuvf-mandt = sy-mandt.
      gvt_tvuvf-fehgr = 'RR'.
      gvt_tvuvf-tbnam = 'KONV'.
      gvt_tvuvf-fdnam = 'SAKN2'.
      gvt_tvuvf-statg = 'RR'.
      gvt_tvuvf-fcode = 'PKON'.
      append gvt_tvuvf.
      clear  gvt_tvuvf.
      gvt_tvuvf-mandt = sy-mandt.
      gvt_tvuvf-fehgr = 'RR'.
      gvt_tvuvf-tbnam = 'TVRRUR'.
      gvt_tvuvf-fdnam = 'SAKUR'.
      gvt_tvuvf-statg = 'RR'.
      gvt_tvuvf-fcode = '    '.
      append gvt_tvuvf.
      clear  gvt_tvuvf.
    insert case
      if not p_inskz is initial.
        if not lvf_subrc1 is initial and
           not lvf_subrc2 is initial.
        insert line
          insert tvuvf from table gvt_tvuvf.
          if sy-subrc is initial.
          line already there
            write: 'Line in table TVUVF inserted'.
          else.
          Error when insert
            write: 'Insert not possible'.
          endif.
        else.
        line already there
          write: 'At least one entry already in the table TVUVF'.
        endif.
      else.
      delete case
        if not p_delkz is initial.
          if  lvf_subrc1 is initial
          and lvf_subrc2 is initial.
          delete line
            delete tvuvf from table gvt_tvuvf.
            if sy-subrc is initial.
            line already there
              write: 'Lines in table TVUVF deleted'.
            else.
            error when insert
              write: 'Delete not possible'.
            endif.
          else.
          line not there
            write: 'At least one entry not in the table TVUVF'.
          endif.
        endif.
      endif.
    See you Monday

Maybe you are looking for

  • Mac Pro -- Installing XP and Win 7 on a SEPARATE Internal Drive

    I would like to install Windows XP SP2 and Windows 7 onto the second Internal Drive in my Mac Pro. I am planning to install Win XP on the first partition and Win 7 onto the second Partition of Drive 2. Will this work? Drive 1 - GUID partition Scheme

  • Line Item Header Data.

    Hi Expert, My client requirement is, when run fbl1 trx code then hide its header and legend information. they do not to display that infromation. Kindly help me out in this regards. Thanks Syed Tayab Shah

  • Missing thumbnails in the timeline

    I'm learning how to cut video in the timeline, and noticed that only the first three cuts result in a thumbnail image, while the last 4 cuts are displayed by a small grey box with a + symbol in the center. Am I doing something wrong here? How does on

  • Strange Occurance With My iPod Classic

    Today I was using my iPod Classic (80GB) and I was at the Main Menu, I highlighted the Music section and as usual my cover artworks were shown at the right side of the screen. But then I realised that one of the pictures it showed I had never seen be

  • GTS BP Data corrupted -SAPSLL/BP_DATA_CLEANUP  not working

    Hi All, We have encountered a typical issue during SPL block release in GTS production system. 1. When we try to lift the SPL block for one of the customs document # XXXXXXX in GTS we have received a error message as "Update error;audit - SPL Block w