Help on purchase order exits..

Hi gurus,
        My requirement is i need to capture time, when the purchase order is created.For this i searched the DB tables but there is I didnt found any table filed for that one.This Time field i put in the form layout of MEDRUCK for the corresponding Purchase Order. Please guide me how to do this.
               Thanks in Advance.
Thanks and Regards
Srihari.

Hi srihari,
i have a code which reads data from cluster tables. This code might help u.Look at this code.
here is a sample code ..
**Subroutine to get BSIS data(G/L Accounts)
PERFORM GET_BSIS_DATA.
**Subroutine to get BSAS data(G/L Accounts (Cleared Item)
PERFORM GET_BSAS_DATA.
Proceed only if data found
CHECK GV_NODATA_FLG IS INITIAL.
**Subroutine to get BKPF data(Accounting Document Header)
PERFORM GET_BKPF_DATA.
**Subroutine to get BSEG data(Accounting Document Segment)
PERFORM GET_BSEG_DATA.
FORM GET_BSIS_DATA.
CLEAR IT_GLACCOUNTS.
REFRESH IT_GLACCOUNTS.
SELECT BUKRS
GJAHR
BELNR
FROM BSIS INTO TABLE IT_GLACCOUNTS
WHERE BUKRS IN S_BUKRS AND
( HKONT IN S_HKT_IC OR
HKONT IN S_HKT_TX ) AND
BELNR IN S_BELNR AND
BUDAT IN S_BUDAT .
ENDFORM. " GET_BSIS_DATA
FORM GET_BSEG_DATA.
CLEAR IT_BSEG.
IF NOT IT_GLACCOUNTS[] IS INITIAL.
SELECT BUKRS
BELNR
GJAHR
BUZEI
SHKZG
MWSKZ
DMBTR
KOSTL
AUFNR
XAUTO
HKONT
PROJK
XBILK
FROM BSEG INTO CORRESPONDING FIELDS OF TABLE IT_BSEG
FOR ALL ENTRIES IN IT_GLACCOUNTS
WHERE BUKRS = IT_GLACCOUNTS-BUKRS AND
BELNR = IT_GLACCOUNTS-BELNR AND
GJAHR = IT_GLACCOUNTS-GJAHR.
ENDIF. "IF NOT IT_BKPF[] IS INITIAL
ENDFORM. " GET_BSEG_DATA
HoPE THIS HELPS U..
reward if useful
thanks and regards
suma

Similar Messages

  • F4 Help for Purchase Order field in SRM

    Hello,
    I am working on developing a report program in SRM in which I have the fields Purchase Order Number, Fund, WBS Element for which I've taken the reference type as crmd_orderadm_h-object_id, BBP_PDACC-FUND, BBP_PDACC-WBS_ELEM_E respectively. I would like the F4 help to be added for these fields. How do I do that? Please let me know.
    Thanks,
    Venkata Phani Prasad K

    Closing Thread.

  • Help in Purchase order check BADI !

    Hi Experts,
    I have made some changes in the BBP_DOC_CHECK_BADI for the BUS2201 object implementation whereby I had implemented the changes for checking the attachment details in the Purchase Order. Now here I used the Function Module BBP_PD_PO_GETDETAIL to get the PO details by giving the GUID as iv_doc_guid.
    The sample code is below :
    CALL FUNCTION 'BBP_PD_PO_GETDETAIL'
    EXPORTING
       I_GUID                           = iv_doc_guid
       I_WITH_ITEMDATA                  = 'X'
    IMPORTING
       ET_ATTACH                        = gt_attach
    TABLES
       E_ITEM                           = gt_item
    I have taken the details of attachments which get populated in the structure ET_ATTACH and checked for various conditions in attachments.
    I find that if the PO has a change version wherein the previous version did not have any attachments - everything works normally.
    But if the previous version of PO had faulty attachments - and the user deletes the attachments in the change version - I find that the function module still takes the active version GUID as input to the PO as a result of which it checks for the faulty attachments and throws error.
    Now there are no attachments in the change version of the PO. Can any one tell me whether it is possible to pass the guid -- such that it checks if the same attachments in the active document have been modified in the change version , so that if the faulty attachments in the active version are changed to the correct ones it should not throw an error!!!
    Looking forward for your expert comments.
    With Regards,
    Rajesh R

    Hi
    Read this ...
    As I told you in my earlier reply ...
    <u>ET_ATTACH table uses structure - BBP_PDS_ATT_T . This structure has following fields -></u>
    GUID     Globally Unique identifier
    P_GUID     Parent GUID
    LOGICAL_SYSTEM     Business Document Service: ID of Logical System
    CLASSNAME     Business Document Service: Class name
    CLASSTYPE     Business Document Service: Class type
    OBJKEY     Business Document Service: Object key
    DOC_ID     Business Document Service: Document ID
    DOC_VER_NO     Business Document Service: Document version number
    DOC_VAR_ID     Business Document Service: Document variant ID
    DESCRIPTION     Attachment Description
    URL     URL Case-Sensitive
    TYPE     Procurement Document Attachment Type
    INTERNAL_IND     Indicator Showing if Attachment is only for Internal Use
    DEL_IND     Deletion Indicator SRM Purchasing Document
    <u>We can use either the DOC_ID / DOC_VER_NO fields to determine the active versions. You need to see in debugging, which all fields get poupulated with values in case of versions in this structure, to code your logic accordingly.</u>
    <u>Anyways, please find some sample code for dealing with Active versions.</u>
    append lines of et_attach to lt_attachment_versions.
    * Due to the fact, that the currently active version is in the
    * received phio list and that it is possible, that there are
    * several phios with the same version number (check_in) the
    * output table has to be additionally prepared.
      SORT lt_attachment_versions BY
         guid            ASCENDING
         p_guid          ASCENDING
         loio_class      ASCENDING
         phio_version_no ASCENDING
         changetime      DESCENDING.
      lv_version_no = 1.
      WHILE lv_version_no < is_attach-phio_version_no.
        READ TABLE lt_attachment_versions
          INTO ls_attachment_version WITH KEY
            guid            = is_attach-guid
            p_guid          = is_attach-p_guid
            phio_version_no = lv_version_no
            del_ind         = space.
        IF sy-subrc EQ 0.
          APPEND ls_attachment_version TO et_attach_versions.
        ENDIF.
        lv_version_no = lv_version_no + 1.
      ENDWHILE.
      DELETE et_attach_versions WHERE NOT del_ind IS INITIAL.
    <u>Other links which might help.</u>
    <b>http://help.sap.com/saphelp_srm50/helpdata/en/46/882fdd8bfc1743bd5ef8b532f94402/frameset.htm
    http://help.sap.com/saphelp_srm50/helpdata/en/a7/81b463611c124d8c9d2c5bd8d17b34/content.htm</b>
    Hope this will help.
    Regards
    - Atul

  • Help Bapi Purchase order with reference to purchase requisition no

    Hi,
    i used BAPI_PO_CREATE1 for creating purchase order with reference to Purchase requisition number but im getting these error
    please help me to solve this
    1 E BAPI 001 No instance of object type PurchaseOrder has been created. External reference:
    2 E MEPO 001 Purchase order item 00010 still contains faulty schedule lines
    3 E 06 054 Doc. type/item cat. NB/S (requisition) <-> NB/ (purch. order)
    4 E 8W 162 No schedule line exists for schedule line number 0010000030 00010 0000.
    Thanks & Regards,
    Azhar
    Message was edited by:
            Azhar

    Hi Azar,
    I am also getting the same messages, did you get resolve the issue.

  • Need help on purchase order form

    Hi friends,
    Is it possible to put one folder ( tab) in purchase order form. I am trying to put folder in po screen. if i put any button object in po form it works. but when i put folder it is not showing folder and no errors.
    can anybody help me.....

    Hi Manish,
    it is possible to add the folder to purchase order form.
    you get the reference to Tax Folder of Purchase Order as Item.
    oItem=poForm.Items,Item("2013")
    then set the properties for your folder
    oFolderItem.visible=true
    oFolderItem.left=oItem.Right
    oFolderItem.top=oItem.Top
    oFolderItem.height=oItem.height
    oFolderItem.Width=oItem.width
    oFolderItem.frompane=0
    oFolderItem.topane=0
    oFolderItem.Specific.caption="asdf"
    oFolderItem.Specific.GroupWith("2013")
    Hope it helps you
    Regards
    Vishnu

  • Please help in purchases order amendment dates

    please help me in purchase order amendment date
    how to maintain this and how it will be reflect in invoice...

    Hi!
    If you wanted to create an own search help for that field, just go to SE11 transaction, and create a new search help.
    Join your Z-table with the customer table and create a view. Use this view in your new search help.
    Regards
    Tamá

  • Need help abt Purchase order and material document number

    1)Is there any releation ship between Purchse order number and material document number?
    2) I found aBAPI to get the goods receipt details. That is BAPI_GOODSMVT_GETDETAIL. But it is excepting Material document number and material document year as input parameters.Is there any BAPI to get goods receipt details by using purchase order number?

    hi kiran
    check this thraed. this gives you relatinship between Purchse order number and material document number
    Retrieving Accounting Document number based on PO numbers
    BAPI to get goods receipt details by using purchase order number is
    BAPI_GOODSMVT_CREATE
    thanks
    Sachin

  • Help with purchase order detail

    Hello Experts,
    I am currently trying to get information on a purchase order, but not having any luck.  I need to find the PO Number, and PO Approval Date.  I cannot find either of these.  I have tried using BBP_PD_PO_GETDETAIL, but have no luck with this.  here is what I have:
    move w_result-sc_guid TO lv_guid.
            CALL FUNCTION 'BBP_PD_PO_GETDETAIL'
             EXPORTING
               I_GUID                           = lv_guid
               I_OBJECT_ID                      = w_zwkflw_rep-object_id
               I_WITH_ITEMDATA                  = 'X'
               I_READ_FROM_ARCHIVE              = 'X'
             IMPORTING
               E_HEADER                         = ls_e_header
             TABLES
               E_ITEM                           = lt_e_item
    All I have available is shopping cart number.  Can anyone assist please?  Thank you.

    hi,
    try below steps to retrieve purchase order details from a shopping cart.
    get the purchase order GUID in ET_HEADER_REL parameter of BBP_PD_SC_GETDETAIL fm using the shopping cart number or GUID.
    then to get the purchase order details, use BBP_PD_PO_GETDETAIL importing I_GUID = purchase order GUID from ET_HEADER_REL.
    regards.

  • Help with purchase order

    hie all, i have a problem with a custom purchase order. The item text  for a line item is over shadowing the line item, they are sitting on top of each other.. how ever if i comment out the item text the line item is displayed properly. the Item text is attached to the last line item on the order. please help

    Hi,
    increase line spacing in your smartstyles instead of null of that paragraph format.
    Thanks,
    Sree.

  • Help Restriction Purchase Order Transaction Notification

    Good afternoon experts community'm doing a lock which I doubt as raise it, the case is as follows:
    The purchase order should not be created if the unit price of the item is higher than the price of the price list of sap, the problem is that now they will start to use the extra coin price list, that is why it is requires blocking the creation of the purchase order if the order price is higher or not applicable to the two alternatives we have in our price list.
    In advance I will be grateful if anyone reads this post and I can reach out to fill this requirement and also bring something more to my knowledge.
    best regards!
    example
    if @transaction_type = 'A' and @object_type='22'
    begin
        set @itemcode =(select top(1) o1.itemcode
                          from opor o inner join por1 o1 on o1.docEntry = o.docEntry
                                      inner join ocrd c  on c.cardcode  = o.cardcode
                         where u_facnum is not null
                           and  not exists(
                                           select *
                                             from itm1
                                            where itemcode  = o1.itemcode
                                              and pricelist = c.listnum
                                              and (price > o1.Price and AddPrice1 > o1.Price  or itemcode in ('FLETE','SEGURO'))
                           and  o.docEntry = @DocEntry)
       if (
           select count(*)
             from opor o inner join por1 o1 on o1.docEntry = o.docEntry
                         inner join ocrd c  on c.cardcode  = o.cardcode
            where u_facnum is not null
              and  not exists(
                              select *
                                from itm1
                               where itemcode  = o1.itemcode
                                 and pricelist = c.listnum
                                 and (price > o1.Price and AddPrice1 > o1.Price  or itemcode in ('FLETE','SEGURO'))
              and  o.docEntry = @DocEntry
           )>0
       begin
         set @error = 1
         set @error_message = 'Error el articulo '+@itemcode+' no concuerda a lista de precios del cliente.!'     
       end
      end

    Hi,
    Please avoid using Transaction Notification if you want to insert a B1 object via DI API using the integration framework.
    The reason is, that the integration framework uses the DI API logic and this transaction notification runs on top after the DI API process is finished. Therefor it is not really part of the DI API process.
    This could cause an unexpected exception in the DI Adapter of the Integration Framework.
    My proposal is to check your mentioned logic within the integration framework instead of using the transaction notification at the end.
    E.g. Build a flow using a SQL Call atom to retrieve the pricelist price you want to compare with.
    You can built a conditional processing in your integration flow to avoid the creation of the purchase order or directly change the price on the flow.
    Another option is to check your logic, create the purchase order with status "for approval" and inform the keyusers via B1 alert message out of your integration scenario step.
    Best regards
    Bastian

  • Requisitioner Help in Purchase Order Create  / Change / Display

    Hi Friends,
    Requiremnet : i want F4 Help in the Requisitioner Field from the Employee Master Table
    Is there any Exit or Enhancement Spot for this.
    Regards:
    Sridhar.J

    Answered by Own
    Thank You.
    Regards:
    Sridhar.J

  • User exit while saving Service Purchase Order

    i want to update one z table from the Service PO, after saving. Hence i require , an user exit, which will give the details of the service tab , of the PO. I am not able to get any exit, where the details of the Service tab, of the transaction me22n.
    Below is the screen of the Service tab of the purchase Order Screen :
                                                                                    <b>Line      DeService numbShort text                   Quantity          Uni    Gross priceCr
        10          3000001     Sub-Con Recruitment Commissio91                DAY1,249.00       IN
        20          3000001     Sub-Con Recruitment Commissio91                DAY1,249.00       IN</b>

    hi,
    check this out .
    Transaction Code - ME21 Create Purchase Order
    Exit Name Description
    AMPL0001 User subscreen for additional data on AMPL
    LMEDR001 Enhancements to print program
    LMELA002 Adopt batch no. from shipping notification when posting a GR
    LMELA010 Inbound shipping notification: Transfer item data from IDOC
    LMEQR001 User exit for source determination
    LMEXF001 Conditions in Purchasing Documents Without Invoice Receipt
    LWSUS001 Customer-Specific Source Determination in Retail
    M06B0001 Role determination for purchase requisition release
    M06B0002 Changes to comm. structure for purchase requisition release
    M06B0003 Number range and document number
    M06B0004 Number range and document number
    M06B0005 Changes to comm. structure for overall release of requisn.
    M06E0004 Changes to communication structure for release purch. doc.
    M06E0005 Role determination for release of purchasing documents
    ME590001 Grouping of requsitions for PO split in ME59
    MEETA001 Define schedule line type (backlog, immed. req., preview)
    MEFLD004 Determine earliest delivery date f. check w. GR (only PO)
    MELAB001 Gen. forecast delivery schedules: Transfer schedule implem.
    MEQUERY1 Enhancement to Document Overview ME21N/ME51N
    MEVME001 WE default quantity calc. and over/ underdelivery tolerance
    MM06E001 User exits for EDI inbound and outbound purchasing documents
    MM06E003 Number range and document number
    MM06E004 Control import data screens in purchase order
    MM06E005 Customer fields in purchasing document
    MM06E007 Change document for requisitions upon conversion into PO
    MM06E008 Monitoring of contr. target value in case of release orders
    MM06E009 Relevant texts for "Texts exist" indicator
    MM06E010 Field selection for vendor address
    MMAL0001 ALE source list distribution: Outbound processing
    MMAL0002 ALE source list distribution: Inbound processing
    MMAL0003 ALE purcasing info record distribution: Outbound processing
    MMAL0004 ALE purchasing info record distribution: Inbound processing
    MMDA0001 Default delivery addresses
    MMFAB001 User exit for generation of release order
    MRFLB001 Control Items for Contract Release Order
    LMEKO001 Extend communications structure KOMK for pricing
    LMEKO002 Extend communications structure KOMP for pricing
    MM06E011 Activation of PReq Lock
    No of Exits: 38
    Kishi.

  • Creation of sales order through Purchase order

    Hi all
    We have a special scenario in creation of Sales order with the help of purchase order,
    Could you please advice me how we can create sales order with the help of purchase order.
    Thank YOu
    Swaroop

    you can create the sales order from the purchase order.It can be achieved by Idocs.
    Please maintain the condition record for the output medium EDI and also maintain the Partner profile in WE20.

  • Sales order and purchase order date management

    Hi all,
    I am new to SAP so please pardon the question in advance if this is a basic one.
    I need a little help with purchase order and sales order dates.  Our supplier runs SAP and our two systems are tied together. Currently my supplier is not updating their promise date because this is how we are tracking late shipments. However, this means ETA/ETD dates are incorrect.  Is there a way for us to keep track of late shipments and still maintain accurate ETD/ETA dates? Thanks in advance for any help you can provide!

    Firstly, thank you Edgar and Rahul for taking the time to answer my question.
    Apologies guys I should have provided more information in my initial post.
    Our parent company is also our supplier.  We cut a purchase order, notify them of the purchase order and in turn they cut a sales order.  My supplier (parent company) is stating if they update the "first date" column in their sales order (which would in turn populate a correct ETA date) we will lose the ability to track late shipments.
    To answer your question Edgar I am referring to the sales document. It is my understanding my supplier is only modifying the "First Date".  Are there several date field in a sales document we can use to 1. track original promise date 2. maintain accurate ETA?
    From a "customer" standpoint I need to be able to view both dates so that I know when I can expect to actually receive product and if that product is/was late.
    Thanks!

  • Shipments/ Delivery Document tracking with Purchase Order

    Dear all,
    Please help me in finding all the shipments accessed against Purchase order or Delivery document information with the help of Purchase order.
    Is it possible to track either of them using PO?
    Please help....
    Thanks & Regards,
    Deepthi.

    This is the sales forum, not purchasing forum.
    You might be able to find something in EKBE table for PO. Also check the reference document field LIPS-VGBEL on the delivery. In sales it usually contains the sales order number, not sure if it will have the PO number for the inbound delivery. If not, check other fields in LIPS.
    There is no direct link between shipments and orders. You'll need to find the delivery first and then the shipments for it. Delivery numbers will be in VTTP-VBELN, VTTP-TKNUM is the shipment number.

Maybe you are looking for