Purchase account GL Code Breakup

Hi,
i want breakup like Original Invoice value, Excise duty, Custom
duty and sales tax etc. from Purchase account GL Code 425001
how i can get this ?
hoping to reply
Regards
Rahul

thanks

Similar Messages

  • Purchase Account activation in Company Code

    Hi,
    We have a situation where for the finished goods, we have a new Purchasing Condition to make accruals of Inbound freight costs. And for these finished goods, for the Company codes which have Purchase account activated, we do not want the posting to be done to FRE, Freight purchase account.
    For the rest of the material types, the posting should be normal and have no change.
    Even for the company codes which has Purchase account actiavted, we want the posting to be as ... during goods receipt.
    89     108400000      1500    USD   BSX
    96     132200000     1250- USD     WRX
    86      815030000        250   USD   PRD
    40     450100000          100        USD   ZFN (new)
    50     132390000     100-        USD   FR1
    Could you please provide your comments?
    Thank you,
    Vamshi

    Hi Vamshi,
    I donot think this can be done as if PAM is active FRE will be trigerred
    See the IMG documentation for:
    Materials Management
    -> Valuation and Account Assignment
       -> Account Determination
          -> Account Determination Without Wizard
             -> Configure Automatic Postings
    Here do not execute the transaction, but click on the icon to display
    the documentation instead. Then, scroll down the different posting keys.
    You will see the following:
    "Purchase account(EIN), purchase offsetting account (EKG),
    freight purchase account (FRE):
    These transactions are used only if Purchase Account Management is
    active in the company code."
    Therefore, 'FRE' is the freight purchase account and it is only used if
    Purchase Account Management is active in the company code.

  • HT201359 I'm trying to set up my purchase account, but it keeps asking me about an iTunes code I have to feel  in but I don't know what is that code and where do I get it?

    I'm trying to set up my purchase account, but it keeps asking me about an iTunes code I have to feel  in but I don't know what is that code and where do I get it?

    THe iTunes gift code is an optional field, you don't have to fill it in - gift cards are an alternative method of paying for iTunes content, but as they are not available inall countries (and they are country-specific, they can only be used in the country in which they were issued), you may not be able to fill it in anyway. If they are available in your country then you might be able to buy cards from Apple, supermarkets, electrical stores etc
    If you have a credit card then you can use that as your payment method instead. Otherwise there are instrutions on this page for how to create a new account without giving a credit card number (it won't with existing, or partially created, accounts) : http://support.apple.com/kb/HT2534

  • Functional area and cost of sales accounting (company code 2000) active

    Hi There!
    I hope someone can help.
    In our sandbox system, whenever I try to convert a Purchase requistion into a Purchase Order I get the following error message : "Functional area and cost of sales accounting (company code 2000) active".
    Anyone know how I can resolve this issue?
    Kind regards,
    Karl

    Hi,
    Double click on the error message & check the message Number..
    Then go to
    Spro>MM>Pur
    Attributes of system messages & change the Message from Error to Warning..
    Thx
    Raju

  • Transaction Key for Purchase Account

    Hi Dear All,
    I want ti define another Purchase account key for frieght like FRE.
    How to creat it?
    Regards
    Gitesh

    Hi Gitesh,
    We won't assign Purchase A/C keys in Pricing Procedure.
    Normally we activate Purchase A/C posting @ company code level under the following settings.
    SPRO - MM - Valuation and Account Assignment - Account Determination - Account Determination Without Wizard - Purchase Account Management.
    As I have already mentioned above system uses the Standard transaction key EIN & EKG for Purchase A/C postings.
    I dont think we have the option to change this standard one.
    Now if your requirement is to use a different transaction key instead of FRE then create a new trans.key & assign the same to the freight condition type in Pricing Procedure.
    Hope its clear.
    Thanks & Regards,

  • Purchasing across company codes

    __Current System__
    We have 4 company codes with 4 purchasing org's; each for respective company codes.
    New Scenario
    Due to IT reorg, now we want to be able to purchase across company codes. Basically, single PO with multiple line items, coded to different cost center's, internal orders belonging to different company codes.
    What would be the best way to go about this?
    Points will be awarded.
    Thanks
    Amrish.

    Hi,
      Check whether the account assignment object (cost centre, wbs, etc) used belongs to the same company code in the purchase document
    Regards

  • PURCHASE ACCOUNTING ACTIVATED

    Hai Friends,
    I have one issue.Let me share with you.
    After inplementation of 1year, We have been activated settings for purchase accounting.
    I have done Domestic cycle, There is no problem.Where as Imported PO while doing GRN I have got one error message like this "Account determination for entry 1000 ___ 0001 ___ 3001 not possible"
    Any one explain why this error is taking place ?

    Account determination for entry 1000 ___ 0001 ___ 3001 not possible
    Message no. M8147
    Diagnosis
    The system did not find an account for this transaction. This means that the account determination for key 1000 ___ 0001 ___ 3001 is not maintained in MM Customizing (Valuation). The key is made up of:
    Chart of account
    Transaction key (= Posting transaction)
    Valuation grouping code
    Account grouping code
    Valuation class
    System Response
    The system cannot update a G/L account for this transaction. You cannot post the transaction.
    Procedure
    Contact your system administrator.
    If you have the authorization, check the Account determination in Customizing for Valuation.
    Proceed
    Note
    The relevant posting transaction can be found in Table T030A.

  • PurchaseOperation: Purchase failed with code 5002

    When I try to download a book that I purchased to one of my workstations, I get the following output within `/var/log/bookstore.log`:
    Jun  2 15:55:50 hostname iBooks[17397] <Critical>: MZBookKeeperStoreURLOperation: Starting URL operation with url=https://bookkeeper.itunes.apple.com/WebObjects/MZBookkeeper.woa/wa/getAll / bagKey=(null)
    Jun  2 15:55:50 hostname iBooks[17397] <Critical>: -[ISStoreURLOperation _runURLOperation]: _addStandardQueryParametersForURL: https://bookkeeper.itunes.apple.com/WebObjects/MZBookkeeper.woa/wa/getAll
    Jun  2 15:55:50 hostname bookstoreagent[1491] <Critical>: ISStoreURLOperation: Starting URL operation with url=(null) / bagKey=buyProduct
    Jun  2 15:55:50 hostname bookstoreagent[1491] <Critical>: -[ISStoreURLOperation _runURLOperation]: _addStandardQueryParametersForURL: https://p7-buy.itunes.apple.com/WebObjects/MZBuy.woa/wa/buyProduct
    Jun  2 15:55:50 hostname bookstoreagent[1491] <Critical>: ADI: Account is not provisioned, omitting OTP and MD
    Jun  2 15:55:50 hostname bookstoreagent[1491] <Critical>: PurchaseOperation: Purchase failed with code 5002 and params productType=PUB&price=0&salableAdamId=5212156335&pricingParameters=HQRDL&ownerDsid=52156526
    What should I do to resolve this?

    Unfortunately that did not resolve the issue.  Same thing happening, but I did noticed something I had not seen previously in system.log:
    Sandbox: bookstoreagent(1423) deny file-read-data /Volumes/tank/Users/Shared/SC Info/SC Info.sidd
    Sandbox: bookstoreagent(1423) deny file-read-data /Volumes/tank/Users/Shared/SC Info/SC Info.sidb
    Sandbox: bookstoreagent(1423) deny file-read-data /Volumes/tank/Users/Shared/adi/adi.pb
    So I proceeded to also reset permissions and ACLs on the Shared folder.
    Unfortuantely this still availed no positive results and proceeded with another error.  I now saw the `adi` folder in the mix.  I then also moved it over, but noted that it was still complaining about the `SC Info` folder, even though it does not exist.  Obviously the folder is not being recreated and leads me to believe that there is yet some kind of permission issue, even though things should be sane in that regard.
    I then `mkdir'd` the `SC Info` folder and then got:
    sandboxd[258] ([1423]): bookstoreagent(1423) deny file-write-create /Volumes/tank/Users/Shared/SC Info/.sid.lockFile
    sandboxd[258] ([1423]): bookstoreagent(1423) deny file-write-create /Volumes/tank/Users/Shared/SC Info/SC Info.sidb
    So obviously the sandobx is having some kind of permission issues here.  I could go setting it to 777, but obviously that's not ideal and I'd like to understand what is actually happening here under the sheets that is so elusive...
    Oh, also, I did add Deauth and Auth for this computer in between the steps before mv'ing folders (I don't like to rm things initially until I'm sure I've not blown something up... )

  • Purchase Accounts Posting System

    Dear All,
    I am using SAP B 1 2007B PL 12
    Can anyone tell what is the significane or use of " Purchase Accounts Posting System"  option in Basic initialization.
    From help i was able to understand
    "In localizations where purchase accounting is used, selecting this option enables purchase accounting"
    Can anyone guide with help of example so that it will be more clear.
    swapnil

    Hi Ashish,
    I would like to ask you about the MIRO part of the Purchasing Account Management.
    I have configured the following steps in SPRO
    SPRO > MM > Val & Acc *** > Acc Determ > Acc Determ w/o Wizard > Pur Acc mgmt
              1) Activate Account in Co Code
              2) Calculation of Value for Purchase Account
              3) Separate account document for Pur Acc Posting
                        a) Activate Sep Acc Doc for Pur Acc Post in Valuation Area
                        b) Create new document type for separate document
                        c) Configure Number Range for New Doc Type
                        d) IM: Configure doc type for separate FI doc
                                       (I´ve copied WE doc and name it as WZ)
                        e) IV: Configure doc type for separate FI doc
                                       (I´ve copied RE doc and name it as RZ)
    Also configured OBYC: EIN, EKG, FRE
    During Good Receipt, i succesfully get the separate accounting with accounts
    (D) Purchase Account
    (C) Purchase Offseting Account
    However, when i want to get the same during Invoice Verification i only get the regular Accounts:
    (D) Vendor Acc
    (C) GR/IR offseting account
    As far as I understand as per SAP documentation, i should be able to have this Purchasing Account Management in both operations (G.R. and I.Verification).
    Could you explain how to configure this part?
    many thanks in advance for any information or comment.
    Regards,
    Nicolas.

  • Goods Issue with Purchase Account Management

    Hi,
    in one of our foreign subsidiaries we have to run the MM-Purchase Account Management. These subsidiaries will be delivered by Cross-Company Replenishment deliveries with intercompany-invoicing. Every Goods receipt for such an replenishment delivery will be posted in the receiving subsidiary, besides the normal bookings on the u2018Goods/Invoice Received clearing accountu2019 and u2018Stock accountsu2019, on additional purchasing accounts. Now itu2019s possible that the goods have to be returned to the delivering plant due to any problems. To send back the goods we use again a SD-delivery (triggered also by an MM-IC-Purchase order) and with this SD-delivery we want also to post the goods issue in the subsidiary. But as the goods receipt has been posted on these special additional purchasing accounts, the goods issue has also to be posted on these special additional purchasing accounts (The target is to correct these purchasing accounts to the ammount of the returned goods). But it seems that this is not possible because of the MM-Account determination which doesnu2019t allow to post on these special purchasing accounts with an SD-transaction. Iu2019m no MM-expert but is there any possibility to post on this purchase accounts also when posting a goods issue in SD? If not in standard, are there any User-Exits in the account determination?
    Regards
    Stephan
    Edited by: Stephan Nadler on Aug 12, 2008 1:20 PM

    Hello Dinesh,
    Batch valuation is similar to split valuation. Here is the link on how batch valuation works.
    http://help.sap.com/saphelp_47x200/helpdata/en/25/283db54f7811d18a150000e816ae6e/content.htm
    Please check in sandbox environment before using.
    Hope this helps.
    Regards
    Arif Mansuri

  • Purchase account management- Imports

    Hi,
    Please help me in this.
    Purchase account management is active. CIN is implemented. But MIGO is not happening for import procedure.
    If purchase account management is deactivated, then MIGO is working for import procedure.
    The client needs purchase account management also.
    Thank you

    Hi Aparna,
    Have you have got any solutions to this...
    I am also facing same issue. kindly help me if u solved the issue asked.
    Regards,
    Hemant

  • What is the function of FS chart of account (T. Code: OC03)

    Hi all,
    What is the function of FS chart of account (T. Code: OC03)
    How to post entries in this FS Chart of account (provide T. Code)
    Where we use this FS Chart of accounts
    Thanks and Regards,
    Kumar

    Thanks for you’re reply
    What is mean by EC CS and how to test whether FS Chart of account working or not?
    Provide path or Transaction Code
    Thanks and Regards,
    Kumar

  • Help - Error in PR BAPI :  Purchasing across company codes is not allowed..

    I have written a program to create Purchase Requisition.I am using two BAPIs.In the file i specify the old PR No, New Plant,Purch Group and Purch Org.It is actually a program to create a new PR in a new plant which is a copy of an Old PR in older plant.
    Program is below:
    I am getting the error Purchasing across company codes is not allowed..
    Please Help
    *& Report  ZMMB_BDC_ME51N_WO
    REPORT  ZMMB_BDC_ME51N_WO.
    INITIALIZATION.
    D A T A   D E C L A R A T I O N                                     *
      TYPES: BEGIN OF TY_TABDATA,
              BANFN TYPE EBAN-BANFN, " Purchase Requistion No
              WERKS TYPE MEREQ3211GRID-WERKS, "Plant
              EKGRP TYPE MEREQ3211GRID-EKGRP, "Purchasing Group
              EKORG TYPE MEREQ3211GRID-EKORG, "Purchasing Organization
             END OF TY_TABDATA.
      TYPES: BEGIN OF TY_CHECK,
                BANFN TYPE EBAN-BANFN, " Purchase Requistion No
                BNFPO TYPE EBAN-BNFPO, " Purchase Requistion Item No
                EBAKZ TYPE EBAN-EBAKZ, " PR Closed
             END OF TY_CHECK.
    Declaration of the Internal Table & Work Area.
      DATA:
             IT_TABDATA         TYPE  STANDARD  TABLE  OF   TY_TABDATA, " Internal Table for file
             WA_TABDATA         TYPE                       TY_TABDATA.
      DATA: IT_ITEM TYPE STANDARD TABLE OF BAPIEBAN ,
            WA_ITEM LIKE LINE OF IT_ITEM,
            IT_ITEM1 TYPE STANDARD TABLE OF BAPIEBANC,
            WA_ITEM1 LIKE LINE OF IT_ITEM1,
            IT_ACCOUNT TYPE STANDARD TABLE OF BAPIEBKN,
            WA_ACCOUNT LIKE LINE OF IT_ACCOUNT,
            IT_PRITEMTEXT TYPE STANDARD TABLE OF BAPIEBANTX,
            WA_PRITEMTEXT LIKE LINE OF IT_PRITEMTEXT,
            IT_SERVICES TYPE STANDARD TABLE OF BAPIESLL ,
            WA_SERVICES LIKE LINE OF IT_SERVICES,
            IT_SERVICES1 TYPE STANDARD TABLE OF BAPIESLLC ,
            WA_SERVICES1 LIKE LINE OF IT_SERVICES1,
            IT_SERVICETEXT TYPE STANDARD TABLE OF BAPIESLLTX,
            WA_SERVICETEXT LIKE LINE OF IT_SERVICETEXT,
            IT_CHECK TYPE STANDARD TABLE OF TY_CHECK,
            WA_CHECK LIKE LINE OF IT_CHECK.
       Global data Declaration
      DATA:   GV_YEAR(4)         TYPE C,
              GV_MNTH(2)         TYPE C,
              GV_DATE(2)         TYPE C,
              GV_DATUM(8)       TYPE C,
              GV_ANS TYPE C,
              W_FILENAME      TYPE  STRING.
    Declaration of the Internal Table with Header Line comprising of the uploaded data.
      DATA:  BEGIN  OF  IT_FILE_UPLOAD  OCCURS  0.
      INCLUDE  STRUCTURE  ALSMEX_TABLINE.  "  Rows for Table with Excel Data
      DATA:  END  OF  IT_FILE_UPLOAD.
    Batch Input Data for a single Transaction.
    Message of Call Transaction.
      DATA:  BDCDATA  LIKE  BDCDATA     OCCURS  0  WITH  HEADER  LINE,
             MSGTAB   LIKE  BDCMSGCOLL  OCCURS  0  WITH  HEADER  LINE.
    S E L E C T I O N - S C R E E N                                     *
      SELECTION-SCREEN:  BEGIN  OF  BLOCK  B1  WITH  FRAME TITLE TEXT-001,
                             BEGIN  OF  BLOCK  B2  WITH  FRAME TITLE TEXT-004.
      PARAMETERS: P_FNAME  LIKE  RLGRAP-FILENAME  OBLIGATORY.
      SELECTION-SCREEN:      END  OF  BLOCK  B2,
                         END  OF  BLOCK  B1.
    E V E N T : AT    S E L E C T I O N - S C R E E N                   *
    AT  SELECTION-SCREEN  ON  VALUE-REQUEST  FOR  P_FNAME.
      CALL FUNCTION 'KD_GET_FILENAME_ON_F4'
        EXPORTING
          STATIC    = 'X'
        CHANGING
          FILE_NAME = P_FNAME.
    E V E N T : S T A R T - O F - S E L E C T I O N                     *
    START-OF-SELECTION.
    Upload Excel file into Internal Table.
      PERFORM  UPLOAD_EXCEL_FILE.
      IF  NOT  IT_FILE_UPLOAD  IS  INITIAL.
      Confirm whether you want to proceed with the Upload.
        PERFORM  CONFIRM_UPLOAD.
        IF  GV_ANS  EQ  '1'.
      Organize the uploaded data into another Internal Table.
          PERFORM  ORGANIZE_UPLOADED_DATA.
          PERFORM BAPI_CALL.
        ENDIF.
      ELSE.
        LEAVE PROGRAM.
      ENDIF.
    *&      Form  UPLOAD_EXCEL_FILE
          text
    -->  p1        text
    <--  p2        text
    FORM UPLOAD_EXCEL_FILE .
      CALL FUNCTION 'ALSM_EXCEL_TO_INTERNAL_TABLE'
        EXPORTING
          FILENAME                = P_FNAME
          I_BEGIN_COL             = 1
          I_BEGIN_ROW             = 4
          I_END_COL               = 4
          I_END_ROW               = 9999
        TABLES
          INTERN                  = IT_FILE_UPLOAD
        EXCEPTIONS
          INCONSISTENT_PARAMETERS = 1
          UPLOAD_OLE              = 2
          OTHERS                  = 3.
      IF SY-SUBRC <> 0.
        MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    ENDFORM.                    " UPLOAD_EXCEL_FILE
    *&      Form  CONFIRM_UPLOAD
          text
    -->  p1        text
    <--  p2        text
    FORM CONFIRM_UPLOAD .
      CALL FUNCTION 'POPUP_TO_CONFIRM'
        EXPORTING
          TITLEBAR       = TEXT-002
          TEXT_QUESTION  = TEXT-003
        IMPORTING
          ANSWER         = GV_ANS
        EXCEPTIONS
          TEXT_NOT_FOUND = 1
          OTHERS         = 2.
    ENDFORM.                    " CONFIRM_UPLOAD
    *&      Form  ORGANIZE_UPLOADED_DATA
          text
    -->  p1        text
    <--  p2        text
    FORM ORGANIZE_UPLOADED_DATA .
      DATA : GV_TOTROW TYPE I, "No of records
              GV_ROW TYPE I,
              LC_CNT(3) TYPE N.
      GV_TOTROW = 1.
      SORT  IT_FILE_UPLOAD  BY  ROW
                              COL.
      LOOP AT IT_FILE_UPLOAD.
        GV_TOTROW = IT_FILE_UPLOAD-ROW.
      ENDLOOP.
      GV_ROW = 1.
      WHILE GV_ROW <= GV_TOTROW.
        LOOP  AT  IT_FILE_UPLOAD WHERE ROW = GV_ROW.
          CASE  IT_FILE_UPLOAD-COL.
            WHEN '0001'.
              WA_TABDATA-BANFN = IT_FILE_UPLOAD-VALUE.
            WHEN '0002'.
              WA_TABDATA-WERKS = IT_FILE_UPLOAD-VALUE.
            WHEN '0003'.
              WA_TABDATA-EKGRP = IT_FILE_UPLOAD-VALUE.
            WHEN '0004'.
              WA_TABDATA-EKORG = IT_FILE_UPLOAD-VALUE.
          ENDCASE.
        ENDLOOP.
        GV_ROW = GV_ROW + 1.
        APPEND WA_TABDATA TO   IT_TABDATA .
        CLEAR :WA_TABDATA.
      ENDWHILE.
    ENDFORM.                    " ORGANIZE_UPLOADED_DATA
    *&      Form  BAPI_CALL
          text
    -->  p1        text
    <--  p2        text
    FORM BAPI_CALL .
      DATA:ITM_NO(4) TYPE N,LV_PERCENTAGE(3) TYPE N,
           LV_MSG(60),
           IT_RETURN TYPE STANDARD TABLE OF BAPIRETURN,
           WA_RETURN LIKE LINE OF IT_RETURN.
      DATA: BEGIN OF WA_RETURN1,
            BANFN TYPE EBAN-BANFN.
      INCLUDE  TYPE BAPIRETURN.
      DATA END OF WA_RETURN1.
      DATA:IT_RETURN1 LIKE STANDARD TABLE OF WA_RETURN1.
      DESCRIBE TABLE IT_TABDATA LINES ITM_NO.
      LOOP AT IT_TABDATA INTO WA_TABDATA.
        CALL FUNCTION 'BAPI_REQUISITION_GETDETAIL'
          EXPORTING
            NUMBER                               = WA_TABDATA-BANFN
           ACCOUNT_ASSIGNMENT                   = 'X'
           ITEM_TEXTS                           = 'X'
           SERVICES                             = 'X'
           SERVICE_TEXTS                        = 'X'
          TABLES
            REQUISITION_ITEMS                    = IT_ITEM
           REQUISITION_ACCOUNT_ASSIGNMENT       = IT_ACCOUNT
           REQUISITION_TEXT                     = IT_PRITEMTEXT
      REQUISITION_LIMITS                   =
      REQUISITION_CONTRACT_LIMITS          =
       REQUISITION_SERVICES                 = IT_SERVICES
       REQUISITION_SERVICES_TEXTS           = IT_SERVICETEXT
      REQUISITION_SRV_ACCASS_VALUES        =
      RETURN                               =
        COMPUTE LV_PERCENTAGE = ( ITM_NO / SY-TABIX ) * 100.
        CONCATENATE 'PROCESSING PURCHASING REQUISITION FOR OLD PR NUMBER ' WA_TABDATA-BANFN INTO LV_MSG.
        CALL FUNCTION 'RM_SAPGUI_PROGRESS_INDICATOR'
          EXPORTING
            PERCENTAGE = LV_PERCENTAGE
            TEXT       = LV_MSG.
        CLEAR:LV_PERCENTAGE ,LV_MSG.
        IF IT_TABDATA[] IS NOT INITIAL.
          SELECT BANFN BNFPO EBAKZ FROM EBAN INTO TABLE IT_CHECK FOR ALL ENTRIES IN IT_TABDATA
              WHERE BANFN = IT_TABDATA-BANFN AND EBAKZ = 'X'.
        ENDIF.
        LOOP AT IT_CHECK INTO WA_CHECK.
          LOOP AT IT_ITEM INTO WA_ITEM WHERE PREQ_NO = WA_CHECK-BANFN AND PREQ_ITEM = WA_CHECK-BNFPO.
            DELETE IT_ITEM WHERE PREQ_NO = WA_CHECK-BANFN AND PREQ_ITEM = WA_CHECK-BNFPO.
          ENDLOOP.
          LOOP AT IT_ACCOUNT INTO WA_ACCOUNT WHERE PREQ_NO = WA_CHECK-BANFN AND PREQ_ITEM = WA_CHECK-BNFPO.
            DELETE IT_ACCOUNT WHERE PREQ_NO = WA_CHECK-BANFN AND PREQ_ITEM = WA_CHECK-BNFPO.
          ENDLOOP.
        ENDLOOP.
        LOOP AT IT_ITEM INTO WA_ITEM.
          WA_ITEM-PLANT = WA_TABDATA-WERKS.
          WA_ITEM-PUR_GROUP = WA_TABDATA-EKGRP.
          WA_ITEM-PURCH_ORG = WA_TABDATA-EKORG.
          MODIFY IT_ITEM FROM WA_ITEM TRANSPORTING PLANT PUR_GROUP PURCH_ORG.
          MOVE-CORRESPONDING WA_ITEM TO WA_ITEM1.
          WA_ITEM1-PREQ_NO = ''.
          WA_ITEM1-STORE_LOC = ''.
          APPEND WA_ITEM1 TO IT_ITEM1.
          CLEAR WA_ITEM1.
        ENDLOOP.
        LOOP AT IT_ACCOUNT INTO WA_ACCOUNT.
          WA_ACCOUNT-PREQ_NO = ''.
          MODIFY IT_ACCOUNT FROM WA_ACCOUNT TRANSPORTING PREQ_NO.
        ENDLOOP.
        LOOP AT IT_SERVICES INTO WA_SERVICES.
          MOVE-CORRESPONDING WA_SERVICES TO WA_SERVICES1.
          APPEND WA_SERVICES1 TO IT_SERVICES1.
          CLEAR WA_SERVICES1.
        ENDLOOP.
        CALL FUNCTION 'BAPI_REQUISITION_CREATE'
       EXPORTING
         SKIP_ITEMS_WITH_ERROR                =
         AUTOMATIC_SOURCE                     = 'X'
       IMPORTING
         NUMBER                               =
          TABLES
            REQUISITION_ITEMS                    = IT_ITEM1
           REQUISITION_ACCOUNT_ASSIGNMENT       = IT_ACCOUNT
           REQUISITION_ITEM_TEXT                = IT_PRITEMTEXT
         REQUISITION_LIMITS                   =
         REQUISITION_CONTRACT_LIMITS          =
          REQUISITION_SERVICES                 = IT_SERVICES1
         REQUISITION_SRV_ACCASS_VALUES        =
           RETURN                               = IT_RETURN
          REQUISITION_SERVICES_TEXT            = IT_SERVICETEXT
         REQUISITION_ADDRDELIVERY             =
         EXTENSIONIN                          =
        READ TABLE IT_RETURN INTO WA_RETURN INDEX 1.
        IF WA_RETURN-TYPE = 'E'.
          CLEAR WA_RETURN.
          LOOP AT IT_RETURN INTO WA_RETURN WHERE TYPE EQ 'E'.
            WA_RETURN1-BANFN = WA_TABDATA-BANFN.
            MOVE-CORRESPONDING WA_RETURN TO  WA_RETURN1.
            APPEND WA_RETURN1 TO IT_RETURN1.
            CLEAR WA_RETURN1.
          ENDLOOP.
        ELSE.
          WA_RETURN1-BANFN = WA_TABDATA-BANFN.
          MOVE-CORRESPONDING WA_RETURN TO  WA_RETURN1.
          APPEND WA_RETURN1 TO IT_RETURN1.
          CLEAR WA_RETURN1.
        ENDIF.
        IF SY-SUBRC <> 0.
        ENDIF.
        CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
           EXPORTING
             WAIT          =
           IMPORTING
             RETURN        =
        REFRESH: IT_RETURN[],IT_ITEM[],IT_ACCOUNT[],IT_PRITEMTEXT[],IT_ITEM1[],IT_SERVICES[],IT_SERVICES1[],
                 IT_SERVICETEXT[].
      ENDLOOP.
      WRITE :10 'OLD PR NUMBER' COLOR COL_KEY, 25 'MESSAGE' COLOR COL_KEY.
      LOOP AT IT_RETURN1 INTO WA_RETURN1.
        WRITE:/10 WA_RETURN1-BANFN,25 WA_RETURN1-MESSAGE.
      ENDLOOP.
      CLEAR:IT_TABDATA[],WA_TABDATA.
    ENDFORM   .                 "BAPI_CALL

    Solved on Own

  • Sales invoice posting on an expence account (purchase account)

    Hi all,
    I have to set up the account determination for a sales invoice that have to post on a purchase expence accounts intead of a sales revenue account. This is because with this document type we have to re-sell scraps to our vendors, so this document have to reduce puchase costs intead of increase sales revenue.
    How can I set up the accounts determination in T. VKOA? For example: should I use an account key different from ERL? Hould I "play" with Customer Acc. Goup?
    Obviously I cannot change Material Accounting Group.
    Thanks in advance,
    Flavio

    hello, friend.
    your approach seems perfectly logical.  you could assign an account assignment group, say, '01' for regular customers and '02' for vendors buying scrap.  we have done something similar with our clients but, yes, you need to test it with your FI just to be sure.
    you can do a similar alternative, which we also tried.  instead of the account group, which is simpler, you can assign a pricing procedure to your special sales document type.  your pricing condition type can be copied from PR00, for example ZR00.  you can define and assign an account key ZRL for ZR00 in the pricing procedure.  in VKOA, you can assign this key to your purchase account.
    regards.

  • Install Base Accounting Class code

    Hi,
    Iam using api csi_item_instance_pub.update_item_instance for updating Install base instance.
    Iam able to update the partyid, account id but not accounting class code.
    Can anyone please help me how to update accounting class code along with party information.
    Any help is highly appreciated.
    Here is my code which Iam using to update Item instance..
    CREATE OR REPLACE PROCEDURE updateib_load_test
    IS
    g_instance_id_lst csi_datastructures_pub.id_tbl;
    l_instance_rec apps.csi_datastructures_pub.instance_rec;
    p_ext_attrib_values apps.csi_datastructures_pub.extend_attrib_values_tbl;
    p_party_tbl apps.csi_datastructures_pub.party_tbl;
    p_account_tbl apps.csi_datastructures_pub.party_account_tbl;
    l_pricing_attrib_tbl apps.csi_datastructures_pub.pricing_attribs_tbl;
    l_org_assignments_tbl apps.csi_datastructures_pub.organization_units_tbl;
    l_asset_assignment_tbl apps.csi_datastructures_pub.instance_asset_tbl;
    l_txn_rec apps.csi_datastructures_pub.transaction_rec;
    x2_txn_rec apps.csi_datastructures_pub.transaction_rec;
    l_return_status VARCHAR2 (100);
    l_msg_count NUMBER;
    l_msg_data VARCHAR2 (2000);
    l_created_manually_flag VARCHAR2 (100);
    ----l_org_id NUMBER := 204;
    n NUMBER := 1;
    v_instance_id NUMBER;
    p_commit VARCHAR2 (5);
    p2_commit VARCHAR2 (5);
    p_validation_level NUMBER;
    p_init_msg_lst VARCHAR2 (500);
    v_instance_party_id NUMBER;
    v_ip_account_id NUMBER;
    l_relationship_tbl apps.csi_datastructures_pub.ii_relationship_tbl;
    v_relationship_id NUMBER;
    v_success VARCHAR2 (1) := 'T';
    x2_return_status VARCHAR2 (100);
    x2_msg_count NUMBER;
    x2_msg_data VARCHAR2 (2000);
    p2_validation_level NUMBER;
    p2_init_msg_lst VARCHAR2 (500);
    a NUMBER;
    t1_msg_dummy VARCHAR2 (1000);
    t1_output VARCHAR2 (1000);
    l_not_created NUMBER;
    l_buffer VARCHAR2 (32767);
    l_problem EXCEPTION;
    l_message VARCHAR2 (2000);
    CURSOR updateib_cur
    IS
    SELECT *
    FROM ib_conv_stg
    WHERE updateib = 'Y'
    AND status_stg = 'V'
    AND new_instance_number IS NOT NULL
    AND transaction_id_stg = 8077;
    BEGIN
    -- DBMS_OUTPUT.put_line ('AFTER BEGIN');
    apps.fnd_file.put_line (apps.fnd_file.LOG, 'AFTER BEGIN');
    FOR updateib_rec IN updateib_cur
    LOOP
    BEGIN
    l_instance_rec.accounting_class_code := fnd_api.g_miss_char;
    IF p_party_tbl.EXISTS (1) IS NOT NULL
    THEN
    p_party_tbl.DELETE;
    END IF;
    IF p_account_tbl.EXISTS (1) IS NOT NULL
    THEN
    p_account_tbl.DELETE;
    END IF;
    IF p_ext_attrib_values.EXISTS (1) IS NOT NULL
    THEN
    p_ext_attrib_values.DELETE;
    END IF;
    /* SELECT apps.csi_item_instances_s.NEXTVAL
    INTO v_instance_id
    FROM SYS.DUAL;*/
    l_instance_rec.instance_id :=
    TO_NUMBER (updateib_rec.new_instance_number);
    l_instance_rec.instance_number := updateib_rec.new_instance_number;
    apps.fnd_file.put_line (apps.fnd_file.LOG,
    l_instance_rec.instance_id);
    l_instance_rec.object_version_number := updateib_rec.object_version;
    apps.fnd_file.put_line (apps.fnd_file.LOG,
    l_instance_rec.object_version_number
    --l_instance_rec.inventory_item_id := updateib_rec.inventory_item_id;
    l_instance_rec.inv_master_organization_id :=
    updateib_rec.inv_master_organization_id;
    --189;
    l_instance_rec.mfg_serial_number_flag :=
    updateib_rec.mfg_serial_number_flag;
    --'Y';
    --l_instance_rec.serial_number := updateib_rec.ls_serial_number;
    ---'LOG0005';
    l_instance_rec.quantity := updateib_rec.quantity; --1;
    l_instance_rec.unit_of_measure := updateib_rec.unit_of_measure;
    --'EA';
    l_instance_rec.accounting_class_code :=
    updateib_rec.accounting_class_code;
    apps.fnd_file.put_line (apps.fnd_file.LOG,
    updateib_rec.new_instance_number
    || 'instance_rec'
    || l_instance_rec.accounting_class_code
    || 'updateib'
    || updateib_rec.accounting_class_code
    --'CUST_PROD'; --'INV';
    l_instance_rec.instance_status_id := updateib_rec.instance_status_id;
    --510;
    l_instance_rec.customer_view_flag := updateib_rec.customer_view_flag;
    --'N'; --N
    l_instance_rec.merchant_view_flag := updateib_rec.merchant_view_flag;
    --'Y'; --Y
    l_instance_rec.sellable_flag := updateib_rec.sellable_flag;
    --'Y'; --N
    --l_instance_rec.active_start_date := updateib_rec.active_start_date;
    --SYSDATE;
    l_instance_rec.location_type_code := updateib_rec.location_type_code;
    --'HZ_PARTY_SITES';
    l_instance_rec.location_id := updateib_rec.location_id; --375885;
    l_instance_rec.install_date := updateib_rec.install_date;
    --SYSDATE;
    l_instance_rec.install_location_type_code :=
    updateib_rec.install_location_type_code;
    --'HZ_PARTY_SITES';
    l_instance_rec.install_location_id :=
    updateib_rec.install_location_id;
    --375885;
    --l_instance_rec.vld_organization_id :=
    --updateib_rec.last_vld_organization_id;
    --2104;
    l_instance_rec.creation_complete_flag :=
    updateib_rec.creation_complete_flag;
    --'Y';
    --l_instance_rec.object_version_number :=
    --updateib_rec.object_version_number;
    -- 1;
    l_instance_rec.external_reference :=
    updateib_rec.ls_external_reference;
    l_instance_rec.instance_usage_code :=
    updateib_rec.instance_usage_code;
    l_instance_rec.inv_organization_id :=
    updateib_rec.inv_organization_id;
    l_instance_rec.inv_subinventory_name :=
    updateib_rec.inv_subinventory_name;
    l_instance_rec.inv_locator_id := updateib_rec.inv_locator_id;
    l_instance_rec.manually_created_flag :=
    updateib_rec.manually_created_flag;
    l_instance_rec.last_oe_po_number := updateib_rec.last_oe_po_number;
    l_instance_rec.instance_type_code :=
    updateib_rec.ls_instance_type_code;
    l_instance_rec.attribute3 := updateib_rec.ls_warranty_expiration_date;
    --l_instance_rec.UPDATE_ORACLE:= updateib_rec.UPDATE_ORACLE;
    -- ************* FOR PARTIES **********************************************************
    /* SELECT apps.csi_i_parties_s.NEXTVAL
    INTO v_instance_party_id
    FROM SYS.DUAL;*/
    p_party_tbl (1).instance_party_id := updateib_rec.instance_party_id;
    p_party_tbl (1).instance_id :=
    TO_NUMBER (updateib_rec.new_instance_number);
    p_party_tbl (1).party_source_table :=
    updateib_rec.owner_party_source_table;
    --'HZ_PARTIES'; --
    p_party_tbl (1).party_id := updateib_rec.owner_party_id;
    --442143; --13478;
    p_party_tbl (1).relationship_type_code := 'OWNER';
    p_party_tbl (1).contact_flag := 'N';
    -- l_party_tbl (1).active_start_date := updateib_rec.active_start_date;
    --SYSDATE;
    p_party_tbl (1).object_version_number :=
    updateib_rec.object_version_p;
    apps.fnd_file.put_line (apps.fnd_file.LOG,
    p_party_tbl (1).object_version_number
    -- *********** FOR PARTY ACCOUNT *****************************************************
    /* SELECT apps.csi_ip_accounts_s.NEXTVAL
    INTO v_ip_account_id
    FROM SYS.DUAL;*/
    p_account_tbl (1).ip_account_id := updateib_rec.ip_account_id;
    p_account_tbl (1).instance_party_id := updateib_rec.instance_party_id;
    p_account_tbl (1).party_account_id :=
    updateib_rec.owner_party_account_id;
    --755865;
    p_account_tbl (1).relationship_type_code := 'OWNER';
    --l_account_tbl (1).active_start_date := updateib_rec.active_start_date;
    --SYSDATE;
    p_account_tbl (1).object_version_number :=
    updateib_rec.object_version_a;
    apps.fnd_file.put_line (apps.fnd_file.LOG,
    p_account_tbl (1).object_version_number
    -- 1;
    p_account_tbl (1).parent_tbl_index := 1;
    p_account_tbl (1).call_contracts := 'Y';
    -- ************************** TRANSACTION REC *****************************************
    l_txn_rec.transaction_date := SYSDATE;
    l_txn_rec.source_transaction_date := SYSDATE;
    l_txn_rec.transaction_type_id := 1;
    l_txn_rec.object_version_number := 1;
    -- *************** API CALL *******************************************************
    -- DBMS_OUTPUT.put_line ('BEFORE CREATE ITEM INSTANCE');
    apps.fnd_file.put_line (apps.fnd_file.LOG,
    'BEFORE UPDATE ITEM INSTANCE'
    END;
    BEGIN
    fnd_msg_pub.initialize;
    csi_item_instance_pub.update_item_instance
    (p_api_version => 1.0,
    p_commit => apps.fnd_api.g_true
    --Defaults assigned in the package
    p_init_msg_list => apps.fnd_api.g_true
    --Defaults assigned in the package
    p_validation_level => apps.fnd_api.g_valid_level_full
    --Defaults assigned in the package
    p_instance_rec => l_instance_rec,
    p_ext_attrib_values_tbl => p_ext_attrib_values,
    p_party_tbl => p_party_tbl,
    p_account_tbl => p_account_tbl,
    p_pricing_attrib_tbl => l_pricing_attrib_tbl,
    p_org_assignments_tbl => l_org_assignments_tbl,
    p_asset_assignment_tbl => l_asset_assignment_tbl,
    p_txn_rec => l_txn_rec,
    x_instance_id_lst => g_instance_id_lst,
    x_return_status => l_return_status,
    x_msg_count => l_msg_count,
    x_msg_data => l_msg_data
    COMMIT;
    apps.fnd_file.put_line (apps.fnd_file.LOG,
    'AFTER UPDATE ITEM INSTANCE'
    apps.fnd_file.put_line (apps.fnd_file.LOG, 'test' || l_msg_data);
    /* apps.fnd_file.put_line (apps.fnd_file.LOG,
    'test1'
    || apps.fnd_msg_pub.get
    (l_lcv,
    apps.fnd_api.g_false
    IF l_return_status != apps.fnd_api.g_ret_sts_success
    THEN
    l_not_created := l_not_created + 1;
    ROLLBACK;
    RAISE l_problem;
    END IF;
    updating STATUS in stg table
    BEGIN
    IF l_return_status = 'S'
    THEN
    dbms_output.put_line('satus :'||l_return_status);
    COMMIT;
    END IF;
    COMMIT;
    END;
    -------------exception l_problem
    EXCEPTION
    WHEN l_problem
    THEN
    IF (l_msg_count > 0)
    THEN
    l_buffer := '';
    FOR l_lcv IN 1 .. l_msg_count
    LOOP
    l_message :=
    apps.fnd_msg_pub.get (l_lcv, apps.fnd_api.g_false);
    END LOOP;
    END IF;
    COMMIT;
    END;
    END LOOP;
    END updateib_load_test;

    Hi Nagamohan,
    Thanks for your reply.
    Iam using the Location type code 'HZ_PARTY_SITES'.
    Actually Iam updating existing instance to update party information.
    The existing instance has the accounting_class_code as 'CUST_PROD'.
    I want to update accounting class code to 'INV' while updating party information.
    Iam able to update party information but not able to update accounting class code.
    When I digged into the api, csi_item_instance_pub.update_item_instance I found some code which was updating the accounting_class_code to null if there is party information to be updated. I think this is the reason Iam not able to update accounting class.
    Please help me if there is any chance of updating accounting class code along with party information.
    Thanks in advance

Maybe you are looking for

  • Airport Extreme does not have a valid IP address

    My Airport Extreme Base Station 802.11N (AEBS) no longer has an internet connection and I cannot share internet or even access the internet via an ethernet cable from the AEBS to my iMac unless in Bridge mode. I have a 2.6 Ghz Intel Core iMac running

  • Is anyone successfully using Logic Pro with a Thunderbolt RAID?

    I am having hanging issues before recording which I would like to narrow down possible causes - thanks

  • OBIEE Issue with Hierarchy Prompt

    Hi, I am using a Hierarchy Prompt to select a member from a Hierarchy column whose members come from a essbase cube. I set a presentation variable *"Select_Cliente"* to the prompt and set the filter to a column like "Gen3,Cliente - Default is equal t

  • Memory allocation in mobile phone ? pls. help.

    how can i come to know that how much memory is allocated for heap ? through codeing i want to know the heap and other memory allocaion detail. is there any library funcion ? what is difference between Shared Memory for Storage and heap? and what kind

  • Is Thermaltake 420W enough for me?

    Is the ThermalTake 420W PSU enough for the following? P4 2.8 GHz 800FSB MSI 875P Neo MSI Geforce FX 5600 256MB RAM 2x 256MB DDR 400 Kingston 1x 40GB WD 7200rpm 1x 120GB WD 7200rpm 8MB cache Specs for the Thermal take are here: http://www.thermaltake.