COPA0001 -  Posting VGBEL and VGPOS

Hi all,
Using KEDR following dervation created
28     Table lookup     Excise Document number updatoin
Source
VBRP     VBELN     Billing Document          GLOBAL     USERTEMP1     Temporary field 1 (user-defined)
VBRP     POSNR     Billing item          GLOBAL     USERTEMP2     Temporary field 2 (user-defined)
Target
VBRP     VGBEL     Document number of the reference document CO-PA     VGBEL     Document number of the reference document
VBRP     VGPOS     Item number of the reference item          CO-PA     VGPOS     Item number of the reference item
requirement is
pass vbeln and posnr from source to global_usertemp1 and global_usertemp2.
based on this vgbel and vgpos should be passed to COPA.
i have done the following coding in exit ZXKKEU11.
TABLES : vbrp.
DATA: ce0_1000  LIKE ce01000,       "Import CO-PA structure
      ls_global LIKE kedrcopa.      "Import USERTEMP field
DATA : BEGIN OF vbrp_work_area,
       vbeln LIKE vbrp-vbeln,
       posnr LIKE vbrp-posnr,
       END OF vbrp_work_area.
CASE i_operating_concern.
Derivation enhancements for operating concern 1000
  WHEN '1000'.
    e_exit_is_active = 'X'.
    ce0_1000 = i_copa_item.
    ls_global = i_global.
    CASE i_step_id .
      WHEN '28'.
        SELECT vbeln posnr UP TO 1 ROWS
               INTO vbrp_work_area
               FROM vbrp
               WHERE vbeln = ce0_1000-rbeln
               AND   posnr = ce0_1000-rposn.
          ls_global-usertemp1 = vbrp_work_area-vbeln.
          ls_global-usertemp2 = vbrp_work_area-posnr.
        ENDSELECT.
        IF sy-subrc NE 0.
          e_failed = 'X'.
        ENDIF.
    ENDCASE.
   e_copa_item = ce0_1000.
     e_global = ls_global.
fill temporary structures
   ls_global = i_global.
ENDCASE.
How to write coding for vgpos and vgbel posting?
I have put breakpoint  in the exit.
How to test this exit, which tcode should i use
Help required.
regards
senthil.

Hi
Have you checked Note 124813 - Enhancement COPA0001: Documentation?
Regards
Eduardo

Similar Messages

  • Posting date and posting periods

    HI Experts,
    I am practicing IDES for SD. While using T VL02N for post good Issue I got this error:
    <b>Posting only possible in periods 2006/12 and 2006/11 in company code 1000
    Message no. M7053
    Diagnosis
    The posting date entered is not within one of the permitted posting periods (current period/previous period).
    This can be due to one of two reasons:
    The correct current period has not been set in the system.
    For the system, the first of the entered periods is the current period. At the beginning of a new period, your systems administrator must change the current period in the material master record, using the function "Shift periods". This has not yet been done.
    You have entered a wrong date in the field "Posting date".
    Procedure
    Check the posting date and correct it if necessary. If your input is correct, inform your systems administrator that the "period shifting" (period-end closing) process has not yet been completed. Copied from M8022</b>
    I don;t think there is problem with my posting date. Can someone guide me on how solving this
    Thanks
    Yael

    Go to OMSY and check the periods are current peiods or not to ur comp code?
    If it is not the current period.
    close the posting period by going to MMPV.
    let us say comp code EG, YEAR-2006  PE-6
    so you have to close the posting periods for all months till this month.
    from comp code-EG
    To comp code- EG
    period-7
    fiscal year-2006
    repeat the same but with period-8(month) 9,10,11,12,
    and do the same for 2007 too till you get the current month in OMSY T-Code.
    you need to do close the period end of every month.
    thank you
    chaitanya

  • TS3999 In MONTH, (PC) iCal only clearly lists 2 items a day. The 3rd item is "faded" and bottom portion cut off, w/ a "more" triangle in the lower-right corner. How can I expand (vertically) so the 3rd line posts clearly, and ONLY shows "more" if 4+ event

    In MONTH, (PC) iCal only clearly lists 2 items a day. The 3rd item is "faded" and bottom portion cut off, w/ a "more" triangle in the lower-right corner. How can I expand (vertically) so the 3rd line posts clearly, and ONLY shows "more" if 4+ events?
    Better yet... as there's a lot of "wasted" space w/ too large Month title and empty space surrounding the Month title above and too much space surrounding the month/year slider bar below, how can I minimize these to allow me more usable / valuable calendar "contents" so I don't need to waste so much time clicking "more" just to see the bottom of the truncated third event and find out there are no 4+ events posted that date?  i.e. more "user-friendly" presentation?
    Thx!
    [email protected]

    In MONTH, (PC) iCal only clearly lists 2 items a day. The 3rd item is "faded" and bottom portion cut off, w/ a "more" triangle in the lower-right corner. How can I expand (vertically) so the 3rd line posts clearly, and ONLY shows "more" if 4+ events?
    Better yet... as there's a lot of "wasted" space w/ too large Month title and empty space surrounding the Month title above and too much space surrounding the month/year slider bar below, how can I minimize these to allow me more usable / valuable calendar "contents" so I don't need to waste so much time clicking "more" just to see the bottom of the truncated third event and find out there are no 4+ events posted that date?  i.e. more "user-friendly" presentation?
    Thx!
    [email protected]

  • Difference between field staus group for posting key and GL account

    Hi all,
    can anyone tell me what is the difference of usage for field status group in posting key and GL account as i notice the fileds are the same. during data entry, system will check both field status or how?
    thanks.

    Hi
    Both are to control the field status of the line item.
    But, the FSG of the Posting Key and the GL FSG status should not clash like below.
    Take 'Assignment' field as example :
    Posting key FS - Suppress & GL FS - Required    - will give you error message at the time of posting
    Posting key FS - Required & GL FS - Suppress    - will give you error message at the time of posting
    Otherthan the above, all other combination works
    VVR

  • Difference between post-capitalization and write-up of an asset

    Dear Experts,
    Kindly explain the difference between post-capitalization and write-up of an asset in SAP.
    Regards
    Komal

    Hi Komal,
    Post Capitalization means correction of the value of an asset, which is either set too low due to not carrying out a capitalization in the past, or which is treated entirely as expense.
    where as Write up is the reversal of past depreciation and write-up is necessary either when the depreciation posted was too high or when the reasons for unplanned depreciation no longer exist.
    Regards,
    Venkata Raju

  • Output post processors and workflow engines doesn't come up after cloning

    ours is a RAC+ASM+PCP -enabled
    host1 : DB+ Concurrents
    host1 : DB+ Concurrents
    host3 : WEB+FORMS+OC4J
    host4 : WEB+FORMS+OC4J
    We are suffering from an “empty entropy pool” within the JDBC driver. Basically, the driver will attempt to gather a random number from the pool, but if the pool is empty the driver will wait (sometimes indefinitely) for values to come in. In most installations, the default configuration has the pool being “filled” by numbers created through a user interface such as mouse movements. On our servers, we are typically in a “headless” configuration so the pool may not be replenished properly. I’m not sure why we are seeing this new issue, but since the random number generator is related to security, maybe a security enhancement from the OS upgrade has made this more sensitive.
    Note that QA4 is “mostly” up and running. The concurrent managers are started on both wpsun144 and wpsun154, but the output post processors and workflow engines are still having issues
    The ultimate solution is to add some form of “entropy gathering daemon” to keep the pool filled, but we will need the Unix Admin team’s help and some research to find the best solution. Apparently, in Solaris 10, there is a kernel-level “cryptographic framework” for adding/removing entropy sources.
    The workaround is to add a java option to the java command line. For Solaris this seems to work: “-Djava.security.egd=file:///dev/urandom”. This is NOT a reasonable solution since this requires modifying multiple delivered scripts/templates. I made the following changes only on wpsun144.
    First, for the context file I had to modify the “s_adjreopts” variable to add the above workaround (per doc 1066312.1).
    For adgentns this was fixed by modifying the $AU_TOP/perl/ADX/util/Java.pm file and adding the option. Here are the new lines in the file:
    if($javaCmd =~ /jre/) {
    return ("-mx256m -Djava.security.egd=file:///dev/urandom", 0);
    } else {
    return ("-Xmx512M -Djava.security.egd=file:///dev/urandom",0);
    After this change, adgentns completed successfully and both the “tnanames.ora” and “listener.ora” files were created in the $TNS_ADMIN location.
    For adgendbc, I had to manually modify the template for the script (there are 10 java command lines in the file).
    $AD_TOP/admin/template/adgendbc_ux.sh
    For txkExecSetJaznCredentials.pl, this file was modified:
    $FND_TOP/patch/115/bin/txkSetJaznCredentials.pl
    At this point, adcfgclone did finally complete successfully! Also adautocfg is now completing successfully!
    Some references:
    http://www.usn-it.de/index.php/2009/02/20/oracle-11g-jdbc-driver-hangs-blocked-by-devrandom-entropy-pool-empty/
    Oracle E-Business Suite Applications Technology Readme for Release 12.1.3 (R12.ATG_PF.B.delta.3, Patch 8919491) (Doc ID 1066312.1)
    Look for a section titled, “Attention: JDBC connections may time out during the upgrade process when random number generation is slow on machines with inadequate entropy.”
    Can some one help me on this.

    ours is a RAC+ASM+PCP -enabled
    host1 : DB+ Concurrents
    host1 : DB+ Concurrents
    host3 : WEB+FORMS+OC4J
    host4 : WEB+FORMS+OC4JPlease post the details of the application release, database version and OS.
    We are suffering from an “empty entropy pool” within the JDBC driver. Basically, the driver will attempt to gather a random number from the pool, but if the pool is empty the driver will wait (sometimes indefinitely) for values to come in. In most installations, the default configuration has the pool being “filled” by numbers created through a user interface such as mouse movements. On our servers, we are typically in a “headless” configuration so the pool may not be replenished properly. I’m not sure why we are seeing this new issue, but since the random number generator is related to security, maybe a security enhancement from the OS upgrade has made this more sensitive.
    Note that QA4 is “mostly” up and running. The concurrent managers are started on both wpsun144 and wpsun154, but the output post processors and workflow engines are still having issuesWhat is the error from the Workflow and OPP log files?
    The ultimate solution is to add some form of “entropy gathering daemon” to keep the pool filled, but we will need the Unix Admin team’s help and some research to find the best solution. Apparently, in Solaris 10, there is a kernel-level “cryptographic framework” for adding/removing entropy sources.
    The workaround is to add a java option to the java command line. For Solaris this seems to work: “-Djava.security.egd=file:///dev/urandom”. This is NOT a reasonable solution since this requires modifying multiple delivered scripts/templates. I made the following changes only on wpsun144.
    First, for the context file I had to modify the “s_adjreopts” variable to add the above workaround (per doc 1066312.1).
    For adgentns this was fixed by modifying the $AU_TOP/perl/ADX/util/Java.pm file and adding the option. Here are the new lines in the file:
    if($javaCmd =~ /jre/) {
    return ("-mx256m -Djava.security.egd=file:///dev/urandom", 0);
    } else {
    return ("-Xmx512M -Djava.security.egd=file:///dev/urandom",0);
    After this change, adgentns completed successfully and both the “tnanames.ora” and “listener.ora” files were created in the $TNS_ADMIN location.If you are on R12, please see these docs (search for "Djava.security.egd").
    Oracle E-Business Suite Applications Technology Readme for Release 12.1.3 (R12.ATG_PF.B.delta.3, Patch 8919491) [ID 1066312.1]
    Oracle E-Business Suite Release 12.1.3 Readme [ID 1080973.1]
    For adgendbc, I had to manually modify the template for the script (there are 10 java command lines in the file).
    $AD_TOP/admin/template/adgendbc_ux.sh
    For txkExecSetJaznCredentials.pl, this file was modified:
    $FND_TOP/patch/115/bin/txkSetJaznCredentials.pl
    Can some one help me on this.Are you trying to avoid manual changes? If yes, please make sure you have all the patches mentioned in the docs referenced above applied and you have all the necessary configuration/setup.
    Thanks,
    Hussein

  • Goods Receipt and Goods Issue - Posting Date and Document Date Problem

    Hi All,
    I was using SDK to build own add on to insert Posting Date and Document Date under Inventory> Inventory Transactions> Goods Receipt and  Inventory> Inventory Transactions> Goods Issue, but the UI Screen Posting Date and Document Date shown current date.
    My SAP Business One version was 2007A SP00 PL42 and alreadly upgrade to SP05.
    End up result still the same.
    Is there someone can help me?
    Thanks you.
    Best Regards,
    danny

    Hi there,
    I already solve it by myself.
    Actually is i call the initialization twice:
    Company.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oInventoryGenEntry)
    Thats what make this problem happened.
    Sorry.
    Best Regards,
    danny

  • AR Aging Report does not change with Posting, Due, and Document selections

    It appears to me that when you run the AR Aging report with the same date ranges in each of the date selection fields, Posting, Due and Doument, you do not get a different display of aging buckets.  Does this report always display data based on Due Date?

    Hi Bill,
    When you run the AR Aging report change "Age by" option and check aging buckets are changing or not it has to change.
    Thanks,
    Sachin

  • "Post Invoice and Payment seperately"

    Hi Guys,
    I need help on resolving this issue.
    We are posting a vendor downpayment using F-48.
    We are then doing a vendor invoice and subsequently clearing the open items using F-58. But we are getting the following error while posting
    "Deferred Tax : Post Invoice and Payment seperately $1"
    Thanks,
    Srikanth.

    hi,
    Do you have two tax codes setup up.  One tax code to post with the invoice and another one which is used for transferring when the invoice payment is made.  Please check that you are using the right tax code setup for the posting with the invoice.
    Regards
    Girish BP

  • 'Deferred tax: Post invoice and payment separately $1

    Hi
    A customer invoice is posted with service tax.If we go to f-04 to make
    an entry of payment received and Debit bank, debit TDS certificate
    receivable for the TDS amount deducted and click on process open items
    thereby selecting the customer and then the invoice the system throws
    the error as 'Deferred tax: Post invoice and payment separately $1
    Message no. DEFTAX020'
    And if we try to post it by selecting posting key of credit customer
    which will not do the clearing of invoice, the error does not come.
    We are using deferred tax transfer New : RFUMSV25.All the other
    processes relating to service tax are going fine.
    Please suggest.

    Hi
    A customer invoice is posted with service tax.If we go to f-04 to make
    an entry of payment received and Debit bank, debit TDS certificate
    receivable for the TDS amount deducted and click on process open items
    thereby selecting the customer and then the invoice the system throws
    the error as 'Deferred tax: Post invoice and payment separately $1
    Message no. DEFTAX020'
    And if we try to post it by selecting posting key of credit customer
    which will not do the clearing of invoice, the error does not come.
    We are using deferred tax transfer New : RFUMSV25.All the other
    processes relating to service tax are going fine.
    Please suggest.

  • How to find out the table for Posting Key and A/R & A/P Document types

    hi folks,
    can you let me know which TABLE is used to Posting key and also which TABLE is used for Account Receivables and Account Payables.
    Thank you in advance.

    To find the table of posting key, select any posting key at OB41, then press F1, then click on hammer icon the table used will be displayed. For Posting Key TBSL is the table used.
    Posting Key TBSL
    Customer Master (General)  KNA1
    Customer Master (Company Code) KNB1
    Vendor Master (General) LFA1
    Vendor Master (Company Code) LFB1
    Satish
    (please close the thred if u satisfiy with the answer)

  • Posting date and System date

    Hi SAP experts ,
    I am troubleshooting one system  and I am kind of getting lost ...
    Let me explain the scenario:
    Posting period set up
    Posting date : 01-14-09
    Sytem Date :01 -01-09
    After checking all the information , I ran my period end closing .. I ran a comparison report between 12/31/2008 and 01/01/2009 .
    My balance sheet matches with when I ran by posting date and my balance sheet is way off (especially retained earning )if ran by system date .
    I can get the differnce in amount but was unable to track the exact transaction .Some of the adjustment have been done in this system using system date .
    Any queries that will help me to track  ?  I have used this
    SELECT
    T0.TransId, T1.Account, T1.Taxdate, sum(T1.Debit-T1.Credit) Balance FROM OJDT T0  INNER JOIN JDT1 T1 ON T0.TransId = T1.TransId WHERE T0.TransType = 30 GROUP BY T0.TransId, T1.Account,T1.Taxdate
    But not much of help to target easily ...
    Any advise on this ...Should I consider if balance sheet is correct by posting date , it is fine ..
    Thank you
    Bishal
    Edited by: BIshal Adhikari on Jul 28, 2009 3:52 PM

    Hi Bishal,
    I believe balance sheet by posting date is correct.  System date is only kept for system to show the audit trail when you actually added the document.
    Thanks,
    Gordon

  • Issue In posting date and Due Date

    Hello All,
    my client is creating a GRPO and manually changing the Posting, And doc date. Then by using Copy to utility he is creating A/P Invoices
    There system automatically shows the Posting date, Document Date as of current date(That is what system behavior is ). But now he wants that system should pick all his dates from Base doc i.e GRPO
    So i want to know that is this possible through some query or FMS
    if yes then please suggest me for the same
    Regards,
    Bhushan

    Hi,
    I don't have $38.10.number in my query. Where did you get this field?
    please follow below steps:
    1. Run above query in generator. Sure it gives an error message and ignore this message.
    2. save it under query manager
    3. Assign this FMS at AP invoice posting date and set auto refresh when customer vendor refer is changed.
    Thanks & Regards,
    Nagarajan

  • Invoice verification Invoice date,Posting date and Baseline Date

    Hi Sap Gurus
    Pls Tell Me in detail what Dates should be entered at MIRO transaction,
    Invoice date,Posting date and Baseline Date
    i presumed that the date on the Invoice slip will be Invoice date,
    But in the Invoice the Date is very long back, say a month Older,
    the month of Posting as Posting date, but any posting Date made in MIRO will be Paid after 2 or 3 months so in this case what should be the Posting date.
    at Base line date in the present company Senario the Discount on Vendor payment is literally valid for all the time , say
    In Invoice if the condition is 10% discount if paid in 30 days is given.
    but in actual sense the Vendor is paid 10% less even if he is paid after 4 or 6 months also, so in this case what should be the Entry in Baseline date
    another senario is the vendor has sent only one Invoice for 2 POs how can this be accomadated in SAP
    Pls suggest its Urgent,
    Age may have a Bar, But Points No Bar
    Thanks and Regards
    Sathish

    Hi
    LIV is nothing but You are getting Invoice from the Vendor for your PO   and GR.....and you are checking the Invoice for Price, Qty,Amount etc. by refering the PO  and posting the Invoice...
    Invoice Date : 
               The date of Vendor' Invoice...ie) Date at which the vendor Raised the invoice for his supply against your PO...
    Posting Date :
       The Date at which you actually Verifying Vendor's Invoice and doing the Posting...
    base line date :
        Generally the Posting Date...
    The Imp. of Baseline date is for eg)
    If in the Payment Terms if some conditions are maintained like say
    10% Discount for Payment With in 30 days, if
    PO created on 01.11.2007.
    GR done at 10.11.2007.
    Invoice slip Received at 30.11.2007 but having the Date on it as 20.11.2007...
    So as per your terms you will get 10% Discount if you make the payment on or  20.12.07....
    Here if you keep  inv. Date: 20.11.2007  and Posting Date : 30.11.2007  and Baseline Date as  30.11.2007 ( you cannot maintain baseline date earlier than  Posting date)....even though as per terms the you are  eligible for discount if you make the payment on or before 20.11.2007.....as per the system you are still eligible to get the Discount if you make payment on or 30.12.2007( since you have maintained baseline date as 30.11.2007)...
    this way Baseline date is Importane...
    Generally we use to maintain always Posting Date as Baseline date....
    It is advantageous..
    Reward if useful
    regards
    S.Baskaran

  • Difference between doc date,posting date and invoice date

    hi bw guys
    can someone give a brief on the difference between doc date,posting date and invoice date.and the invidual definitions
    thank you

    Hi,
    Posting Date: Date which is used when entering the document in Financial Accounting or Controlling. The posting date can differ from both the entry date and the doc date.
    Document Date: The document date is the date on which the original document was issued. Ex: Inv date, Bill date etc.,
    Invoice Date : Usually the date when goods are shipped. Payment dates are set relative to the invoice date.
    -Vikram

Maybe you are looking for

  • Password change issue when updating user data in SAP ABAP system

    Hi Guru's, One of my reconciliation tasks part of the reconciliation job I've created is doing some strange password updates. As you can see below the task selects all users part of my identity store that are part of the account attribute of the part

  • Receivables - Query of Customers, sorted by Payment Terms?

    I'm looking for an easy way to run a query (through the Applications layer) of all customers, sorted by their Payment Terms (Net 30, Net 45, etc.) Any ideas?

  • Dynamic List of Objects  OracleAS Portals

    <img class="emoticon" src="images/emoticons/confused.gif" border="0" alt="" /> Hello hope someone can help me I have a <strong>List of Objects</strong>, the thing is that I want that list to give a <strong>parameter</strong>, so i can use it in a <st

  • COGS - Sales analysis doesn't tie to G/L

    Hi, My sales analysis does not tie to my G/L for COGS (i.e sales - gross margin on SA does not equal COGS in G/L). Is there any sensible reason why this should be the case ? Thanks, Wayne

  • The actions window

    When i type in the letters some of them are black some are blue and some are a bright blue. why is that? if anybody has any answers please help me.