Need to find how to relate the purchase order table with account assignment

i need to reterieve the account assignment from the table bbp_pdacc, what is field or any tables that is between BBP_PDACC and Purchase order number or the purchase order items. I am working on the SRM system

Jacques-Antoine,
You can't directly translate a repeating node or element (such as an Item or a Project Task from the Accounting Coding Block of an Item) to a singular node or element.
The reason is that, though your use case may have the elements assumed to be the same for all items, this isn't necessarily the case, so ByDesign won't assume that you can use that kind of logic.
The simplest approach would be to do an On-Save at the Root node of the Purchase Order along the following lines:
this.projecttaskpo = this.Item.GetLast().ItemAccountingCodingBlockDistribution.AccountingCodingBlockAssignment.ProjectTaskKey.TaskID;
i wouldn't actually recommend this code.
You'd need validations for IsInitial, IsSet, and those kinds of functions.
i'd at least use some foreach loop to check that all the accounting coding blocks were for the same task, raise warnings if they weren't, etc.

Similar Messages

  • How to get the Purchase order Qty in the object dependency

    Hi,
    We are using variant pricing in the purchase order. I have condition type say u201CZVBPu201D for Pallet cost. I defined Pallet cost as 5 USD per each (pallet). I have to calculate Number of pallets = Purchase order Qty/ 5. The number of pallets should be rounded to nearest integer.
    My question is how to get the Purchase order Qty in the object dependency?
    Is there any reference table and field can be used to get Purchase order Qty just like we use MMCOM-VKOND for variant pricing.
    Appreciate your help
    Thanks,
    Srini

    Hi,
    1. I do not have system now so I can not conclusively tell about table field .
    2. Since I did it long back so I also do not exactly remember it, there are more than one place where PO qty appears for example Item overview and Item details - one of the PO qty when used in the characteristic do pull the PO qty which can be used for variant pricing (so request to please update the forum with the correct table and field once you find it - in the meantime if I get opportunity to get to system I will also try and find out ).

  • How to view the purchase order output

    Hi all,
    how to view the purchase order output in the transaction me23n?
    How to obtain the purchase order output form?
    Please help..

    HI,
    goto NACE tcode then select the purchase order type and go to output types u cna use standard one NEU and provide the sapcript name and form name default will be there with MEDRUCK and print program.
    then in ME23n click on messages there create ur message type NEU and save it
    then print the purchase order...
    hope u get solved with this
    Regards
    Syed A

  • In MIGO, i need to see delivery dates from the purchase order

    Is there a way to see in transaction MIGO, the delivery dates from the purchase order?  I hope there is some exit or BADI or BAPI or .... to perform this copy function? 
    We have multi-line POs for the same material with staggered delivery dates and the Warehouse needs to know which PO line to receive against.

    when you enter the PO number in MIGO and hit enter, then you only get the items that can be received.
    If you make sure that the PO items are created by ascending delivery date, then you can always take the first.
    if you have the personal setting to display all items (even the already received ones), then you can take the first with a quantity proposal. already received items do not propose quantities.
    I would ask purchasing to tell the vendor that he has to state the PO number along with the item number in all papers (delivery note, invoice).

  • HOW TO BLOCK THE PURCHASE ORDER AND MARK FOR DELETION ?

    Hi ,
                        During the Creation of the Purchase order in the SAP System... After creation of the Purchase order should be blocked and a work item is created for the approver. If the Approver approves the Order then the Order is Unblocked and a mail send to the initiators inbox and the Order is Released. Similarly if the Approver Rejects the Purchase Order then its set for Mark for Deletion.
    I did Po creation and release part. But i am facing problem during the Blocking & Unblocking the Purchase order. If he rejects i need to set for "Mark For Deletion". plz help me to solve this...

    Hi,
    You can use bapi 'BAPI_PO_CHANGE' to change the status of PO and for release use bapi BAPI_PO_RELEASE.
    Hope this will help you.
    Smit

  • How to get the Purchase Order sample form to have 2 detail regions?

    I would like to use the "Purchase Order" sample form as the base, and add one more "detail header" and "detail" subform to it.
    So I copy and paste the "detail header" + "detail" subforms, and position them right beneath the first "detail" subform.
    It works to certain extend.  I can click the "Add Item" button(s), and it would expand the respective "detail" region.
    The problem comes when things get expanded to the 2nd page.
    Say, I first add 5 rows to the 2nd "detail" region, everything still fits in one page;
    then I keep adding rows to the 1st "detail" region, and it begins to expand to the 2nd page....
    everything in the first "detail" region can still fit in the first page,
    the rows in the 2nd "detail" region should get pushed to the 2nd page...
    but when I look at the 2nd page of the form, the "detail header" on the 2nd page is that of the "FIRST" detail header, not the 2nd detail header!!
    So, when you look at the entire form, you have
    First Detail Header
    some First Detail Rows
    2nd Detail Header
    some 2nd Detail rows
    --- end of page 1---
    --- page 2---
    First Detail Header
    some detail rows (can't tell if they belong to the first detail region or 2nd detail region)
    This obviously is not right.
    So, how do I fix it such that the Detail Header on the 2nd page is that of the 2nd Detail header???

    an update:
    I have found out that the detail rows on the 2nd page are all that of the 2nd detail region.
    so, it's like this:
    when you look at the entire form, you have
    First Detail Header
    all the First Detail Rows
    2nd Detail Header
    some 2nd Detail rows
    --- end of page 1---
    --- page 2---
    First Detail Header
    some 2nd detail rows

  • How To Prevent the Purchase Order from Holding!

    Hi Experts,
    We use the method CHECK in BADI ME_PROCESS_PO_CUST to check custom data in purchase order, if error occurs then some error messages will be issued. We use below statements to issue error messages and also set the PO invalidate:
    INCLUDE mm_messages_mac.
    mmpur_message_forced 'E' 'ME' '083' text-097 '' '' ''.
    CALL METHOD IM_HEADER->invalidate( ).
    ch_failed = 'X'.
    Actually the BADI works well. But we try to prevent the user from HOLDING the purchase order if the BADI issue the error messages. It seemd that we can not get over this problem by BADI ME_PROCESS_PO_CUST. Can any friends give me some advice on the problem?? Thank you in advance.
    Joe
    Edited by: Joe on Dec 1, 2010 5:31 PM

    Hi Faheem,
       Thanks very much for your help. Your idea really works, but other problem occurs if we use this idea. If we issue an error message in EXIT_SAPMM06E_013 to prevent PO from being holding, all the PO data ( include header and items etc,) are cleared by program.
    At last, we negotiated with users and take a non-program step to prevent the PO from being hoding.
    Thanks.
    Joe
    Edited by: Gangrong Chen on Dec 7, 2010 10:45 AM

  • How to consider the Purchase Orders in Long Term Planning

    Hi All,
    I wanted to include the Purchase Orders of Finished Material in Long Term Planning.
    I have selected the check box "Long-term planning: include firmed issues and receipts" in the Planning Scenario  but after LTP run system is not considering the Purchase Orders of Finished Materials for Planning.
    Regards,
    Shailendra
    Edited by: Shailendra Hadkar on Apr 5, 2010 12:41 PM

    Dear,
    Could you please explain usage of purchase orders for Finished product?
    Regards,
    SAP CONS

  • How to differentiate the Purch Orders created with reference to in table

    Hi all
      how to differentiate the Purch Orders which are created with reference to Purch requsitions, contract, manual by copying inforecord in the table EKKO/EKPO? Is there any Field Indicators?
    Rgds
    Ramesh

    Hi Ramesh,
    Go through  EKPO there is a Table BANFN it will update when you create a PO with reference to PR
    Do se11 > Table EKPO> CtrlShiftF10 > Assign any of PO no. in the EBELN > Execute > you will find BANFN table
    it indicates Purchase Requisition Number. it will update when you create PO with reference to PR.
    Regards,
    Vraj

  • Problem in enhancing the Purchase Order BADI with custom fields

    Hi All,
    I have problem  in populating the  cutom fields for the Purchase Order. I have created a custon include  and i am passing the values to the extension of the  Function module BAPI_PO_CHANGE  In ECC 6.0. I have  one currency field (ZZMASSIST)  in the header level and  three curr fields in the  item level  , due to this currfields we are getting the errors like "Error transferring ExtensionIn data for enhancement CI_EKPODB" and "Error transferring ExtensionIn data for enhancement CI_EKKODB" .
    So i  am looking to implement  the BADI   "ME_BAPI_PO_CUST " . Please provide me the sample code for maintain the currency fields in method IF_EX_ME_BAPI_PO_CREATE_02~MAP2I_EXTENSIONIN.
    Thanks in Advence.
    Regards,
    Venkat Appikonda.

    Hi Venkat,
    Saw that you solved the issue, can I ask how do you implement it? Is the implementation done in the BAPI itself?

  • Purchase Order Creation without account assignment

    Hi All,
    Is it possible to create a purchase order without assigning account assignment category?
    If yes kindly provide the configuration steps?
    Regards
    Krishna

    Hi ,
    Purchase orders can be created without account assignments . For stock material which are comes under valuation are purchased without reference to account assignment , automatic account determination is requied here . For each material type and plant combination you have to make quantity and value update .
    Regards
    Raga

  • How to set the Purchase Order screen to display Add and Cancle button

    Hi Experts,
    Do anybody knows that how can we see the Add / Cancle button on Purchase Order screen ? , at present I need to compulsory scroll vertically to look at Add / Button button.
    In Stock Transfer / Inventory transfer screen when we maximise it than also we can see the add / cancle button
    will change of font will effect it ?
    BR
    Samir Gandhi

    Hi,
    Can you maximize the PO screen too? You should try a smaller font to seem more within a window form.
    Thanks,
    Gordon

  • How to get the purchase order's delivery completed date in the dictionary

    Hi consutant :
    In me23n transaction code ,I set the delivery completed indicator mannul . I can see the state of
    delivery completeed by click environment->item changes menu . But I don't find the date that I  set
    the state of delivery completed  in the abap dictionary .
    How to find that table store the date of delivery completed about purchase order ?
    thanks .

    hi
    you will get delivery date from
    eket table .
    and field name is eindt.
    how to go there. ?
    ans===>
    SELECT ebeln  ebelp  eindt          " For Delivery Date EKET
         FROM eket
         INTO TABLE it_eket
         FOR ALL ENTRIES IN it_ekpo
         WHERE    ebeln = it_ekpo-ebeln
          AND     ebelp = it_ekpo-ebelp.
    reward point if its usefull.

  • How to acheive the purchase order items in Crystal report

    Hi
          In crystal Report am using purchase order layout ,how to remove the unwanted space(i'm using only one item like cement alone so lot of space in page 1 )below screen shot show the clear view how to remove this using formula.if suppose am using 5 items that space will cover ,but for 1 item lot of empty spaces.
    Regards
    Vinoth

    Hi Vinoth,
    Please follow below Steps.
    In Crystal Report for Report Footer Section -- Report >>> Section Report >>> Print at Bottom of Page >>> Uncheck
    Please check attachment also.
    hope thid help
    Regards::::
    Atul Chakraborty

  • How to disbale the Purchase order item texts (Material PO text)

    Hi,
    In ME22n, i want to disable texts for material  at item level . i tried thru SPRO , but it disables header and item level texts.
    How can i achieve this ? 
    Thanx,

    Hi Khushi,
    I think you cannot disable them but you can delete them using T.Code OLME(But it is not suggestible).follow the path Purchase Order>Texts for Purchase Orders>Define Text Types for Item Texts. Here you have to delete.
    But why you want to disable any text to be written in PO?
    Thanks & Regards,
    Rock.

Maybe you are looking for