Creating confirmation using Purchase Order details

Hi all,
I am trying to create a confirmation for a Purchase Order in SRM Version 5,ECC 5.0(ECS Scenario).
In my program, I first get all the Purchase Orders using the function module, BBP_PD_PO_GETDETAIL. Then I want to confirm this Purchase Order in the back end and front end using some funtion module.
I have tried with the function module, BP_PD_CONF_CREATE, to create the confirmation.For this function module, I have passed the header details such as Object_id,process_type,log_system_FI ,be_log_system,
be_object_type , be_refobj_type.
I have also passed the Item,partner,account,org,longtext,pridoc and tax details of the PO as input to this function module.
On execution of this function module, I get the Confirmation number, but the confirmation does not get created in the front end as well as backend. I also tried with the following function modules,
BAPI_CONFEC_CREATE - For this function module I first tried passing the PO details as above as input but it didnt work. Then I tried passing the output of the Function module BP_PD_CONF_CREATE which had the Confirmation number, as input to BAPI_CONFEC_CREATE. It gives an error 'There has been a unexpected exception'.
I also used the following function modules,
BBP_PD_CONF_UPDATE
BBP_GOODS_MVT_CREATE
BBP_PROCDOC_CREATE
But none of them works....
Please help me if anyone has dealed with such a scenario.
Thanks,
Sowmiya M

Hello,
I am also new in SCM ICH, but may be there is no transportation line defined for this material.
Call transaction /SAPAPO/SCC_TL1 in your ICH-System or select menu Inventory Collaboration Hub - Master Data - Transportation Lane.
Create a product-specific transportation line.
I am not sure, if it's neccessary to transfer the PO once more before confirming.

Similar Messages

  • Create Confirmation, Search Purchase Order, sort order

    Hi experts,
    when I use the button "Create Confirmation" on the POWL Confiramtions to create a Confirmation I can search for available purchase orders. The list of purchase orders seems to be sorted by creation date / posting date in ascending order, meaning the newest PO is at the bottom of the list.
    How can I sort this list in another way, e.g. by creation date in descending order, meaning the newest PO is at the top of the list?
    Best regards,
    Marcus

    Hi Rajesh,
    this was my first idea as well, to click on the header of the column. Unfortunately that sorting functionality is not available on that screen.
    On a side note, I think the WD application to search for open POs is one of the worst is SRM concerning the UI design.
    Best regards,
    Marcus

  • Upload of purchase order details using LSMW

    Hi friends,
    I encountered a problem while uploading purchase order details using LSMW . in the field mapping I could not able to fine the field TCODE. as a result I could not assign the transaction code ME21. could you please suggest me a solution.
      thanks

    Hai
    Check with the following
    Select fifth Radio button then follow the bellow step
    <b>5) select radio-Button 5 and execute
       Maintain Field Mapping and Conversion Rules
       Select the Tcode and click on Rule button there you   will select constant
       and press continue button
       give Transaction Code : ME21 and press Enter</b>
    Thanks & regards
    Sreenivasulu P

  • Want to create a multiple Purchase Order using one file source

    I'm want to create a multiple purchase order using one source file. I want to read the file source create LINES in a purchase order and when the Vendor code changes I want to Add the purchase order and then create a new purchase order and Add LINES and so on.
    Right now I get  Item.no is missing [POR1.ItemCode][Line 2]

    Here is a code sample
        Private Sub testcode()
            Dim strOrdplanFile As String
            Dim oLineRec As SAPbobsCOM.Recordset
            Dim strLine As String = ""
            Dim ItemName As String
            Dim Quantity As String
            Dim RequiredDate As String
            Dim SupplierType As String
            Dim ShipTo As String
            Dim Vendor As String
            Dim oPurchaseOrder As SAPbobsCOM.Documents
            Dim bAddPOrder As Boolean = True
            Dim bPurchase As Boolean = False
            Dim sSQL As String
            Dim iReads As Integer = 1
            Dim iCurrentPurchaseNumber As Integer = 0
            Dim bErrors As Boolean = False
            Dim retCode As Double
            oPurchaseOrder = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oPurchaseOrders)
            strOrdplanFile = strFolderLocation & "ORDPLAN.TXT"
            If File.Exists(strOrdplanFile) And FileLen(strOrdplanFile) > 0 Then
                Dim sr As New StreamReader(strOrdplanFile)
                strLine = sr.ReadLine()
                txtPurRec.String = "0"
                oFormStatus.Update()
                Try
                    Do
                        Vendor = strLine.Substring(0, 8).Trim()
                        ShipTo = strLine.Substring(12, 8).Trim()
                        SupplierType = strLine.Substring(26, 1)
                        ItemName = strLine.Substring(27, 20).Trim()
                        Quantity = strLine.Substring(94, 8)
                        RequiredDate = strLine.Substring(206, 9)
                        oLineRec = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.BoRecordset)
                        sSQL = "SELECT PrcrmntMtd, CardCode FROM OITM WHERE ItemCode = '" & ItemName & "'"
                        oLineRec.DoQuery(sSQL)
                        If oLineRec.RecordCount() > 0 Then ' if it exists add the record
                            If oLineRec.Fields.Item(0).Value.ToString = "B" Then
                                If (bAddPOrder) Then
                                    oPurchaseOrder.CardCode = Vendor
                                    oPurchaseOrder.DocDueDate = RequiredDate
                                    'Add first item to the purchase order
                                    oPurchaseOrder.Lines.ItemCode = ItemName
                                    oPurchaseOrder.Lines.WarehouseCode = ShipTo
                                    oPurchaseOrder.Lines.Quantity = CDbl(Quantity)
                                    oPurchaseOrder.Lines.Add()
                                    bAddPOrder = False
                                    bPurchase = True
                                    iCurrentPurchaseNumber = iCurrentPurchaseNumber + 1
                                    txtPurRec.String = "R: " & iReads & " W: " & iCurrentPurchaseNumber.ToString
                                    oFormStatus.Update()
                                Else
                                    'compare CardCode to make sure Vendor hasn't change
                                    If (oPurchaseOrder.CardCode.CompareTo(Vendor) = 0) Then
                                        'Add item to the purchase order
                                        oPurchaseOrder.Lines.ItemCode = ItemName
                                        oPurchaseOrder.Lines.WarehouseCode = ShipTo
                                        oPurchaseOrder.Lines.Quantity = CDbl(Quantity)
                                        oPurchaseOrder.Lines.Add()
                                    Else
                                        'vender code changed
                                        retCode = oPurchaseOrder.Add()
                                        If (retCode <> 0) Then
                                            SBO_Application.MessageBox(oCompany.GetLastErrorDescription(), 1, "OK", "", "")
                                        End If
                                        oPurchaseOrder.CardCode = Vendor
                                        oPurchaseOrder.DocDueDate = RequiredDate
                                        'Add first item to the purchase order
                                        oPurchaseOrder.Lines.ItemCode = ItemName
                                        oPurchaseOrder.Lines.WarehouseCode = ShipTo
                                        oPurchaseOrder.Lines.Quantity = CDbl(Quantity)
                                        oPurchaseOrder.Lines.Add()
                                        bAddPOrder = False
                                        bPurchase = True
                                        iCurrentPurchaseNumber = iCurrentPurchaseNumber + 1
                                        txtPurRec.String = "R: " & iReads & " W: " & iCurrentPurchaseNumber.ToString
                                        oFormStatus.Update()
                                    End If
                                    iReads = iReads + 1
                                End If 'new
                                strLine = sr.ReadLine()
                            End If
                        End If
                    Loop Until sr.EndOfStream
                Catch ex As Exception
                    MsgBox(ex.Message, MsgBoxStyle.Information)
                End Try
                If (bPurchase) Then
                    lRetCode = oPurchaseOrder.Add()
                End If
                sr.Close()
                swLogFile.WriteLine("Purchase orders stored : " & iCurrentPurchaseNumber)
                oPurchaseOrder = Nothing
            End If
        End Sub

  • Interactive ALV report for vendorwise purchase order details

    Hi Experts,
    I am trying to create vendor wise purchase order interactive report, if i click any of vendor detail it has to display vendor details in a popup window or if i click any of purchase details it has to display purchase order details ina popup..
    can any body explain by using function modules REUSE_ALV_POPUP_TO_SELECT and REUSE_ALV_FIELDCATALOG_MERGE...

    Check the link below will be of some use to you.
    http://www.geocities.com/mpioud/Z_REUSE_ALV_POPUP_TO_SELECT.html
    Regards,
    Murthy

  • Interactive report for vendorwise purchase order details

    Hi Experts,
      I am trying to create vendor wise purchase order interactive report, if  i click any of vendor detail it has to call display vendor screen for selected vendor or if i click any of purchase details it has to open purchase order details..
    can any body explain...

    hi arun,
    use at line-selection
    example,
    at line-selection.
    if sy-ucomm = 'PICK'.
      if wa_lifnr is not initial.
        set parameter id 'LIF' field wa_lifnr.
        set parameter id 'BUK' field wa_bukrs.
        set parameter id 'EKO' field wa_ekorg.
        call transaction 'XK03'.  endif.
      if wa_ebeln is not initial.
        set parameter id 'BES' field wa_ebeln.
        call transaction 'ME23N' and skip first screen.
      endif.
    endif.
    Regards,
    Logan

  • Confirmation of purchase order in ICH (supplier view)

    I am new to SCM / ICH and am trying to confirm a purchase order in the ICH - this is from within Purchase Order Collaboration - Supplier View. When I attempt to confirm the PO item an extra schedule line is shown with status 'CONF', however when I save the PO I get the message 'Enter a valid Ship To Partner'. I am assuming that this is because the customer field in the PO header is blank. The data was transferred in SCM from ECC via XI using a standard scenario (Purchase_Order_Processing) and mapping.
    Does anyone know whether this is the correct way to confirm a purchase order in ICH?
    Also, how can I ensure that the 'customer' field contains a value?
    Any assistance would be greatly appreciated.

    Hello,
    I am also new in SCM ICH, but may be there is no transportation line defined for this material.
    Call transaction /SAPAPO/SCC_TL1 in your ICH-System or select menu Inventory Collaboration Hub - Master Data - Transportation Lane.
    Create a product-specific transportation line.
    I am not sure, if it's neccessary to transfer the PO once more before confirming.

  • I Need interactive report to list the purchase orders details for a vendor

    I Need interactive report to list the purchase orders details for a vendor that has    interactive drill down options to give the detail of vendor from vendor master.

    Hi
    see this sample report
    this is Customer wise sales orders
    just make similar report just using LFA1, EKKO and EKPO tables instead of KNA1,VBAK,VBAP
    REPORT ZTEJ_INTAB1 LINE-SIZE 103 LINE-COUNT 35(5) NO STANDARD PAGE
    HEADING.
    *TABLES DECLARATION
    TABLES : KNA1, VBAK, VBAP.
    *SELECT OPTIONS
    SELECT-OPTIONS: CUST_NO FOR KNA1-KUNNR.
    *INITIALIZATION
    INITIALIZATION.
    CUST_NO-LOW = '01'.
    CUST_NO-HIGH = '5000'.
    CUST_NO-SIGN = 'I'.
    CUST_NO-OPTION = 'BT'.
    APPEND CUST_NO.
    *SELECTION SCREEN VALIDATION
    AT SELECTION-SCREEN ON CUST_NO.
    LOOP AT SCREEN.
    IF CUST_NO-LOW < 1 OR CUST_NO-HIGH > 5000.
    MESSAGE E001(ZTJ1).
    ENDIF.
    ENDLOOP.
    *BASIC LIST SELECTION
    START-OF-SELECTION.
    SELECT KUNNR NAME1 ORT01 LAND1 INTO
    (KNA1-KUNNR, KNA1-NAME1,KNA1-ORT01,KNA1-LAND1)
    FROM KNA1
    WHERE KUNNR IN CUST_NO.
    WRITE:/1 SY-VLINE,
    KNA1-KUNNR UNDER 'CUSTOMER NO.' HOTSPOT ON,
    16 SY-VLINE,
    KNA1-NAME1 UNDER 'NAME',
    61 SY-VLINE,
    KNA1-ORT01 UNDER 'CITY',
    86 SY-VLINE,
    KNA1-LAND1 UNDER 'COUNTRY',
    103 SY-VLINE.
    HIDE: KNA1-KUNNR.
    ENDSELECT.
    ULINE.
    *SECONDARY LIST ACCESS
    AT user-command.
    IF SY-UCOMM = 'IONE'.
    PERFORM SALES_ORD.
    ENDIF.
    IF SY-UCOMM = 'ITWO'.
    PERFORM ITEM_DET.
    ENDIF.
    *TOP OF PAGE
    TOP-OF-PAGE.
    FORMAT COLOR 1.
    WRITE : 'CUSTOMER DETAILS'.
    FORMAT COLOR 1 OFF.
    ULINE.
    FORMAT COLOR 3.
    WRITE : 1 SY-VLINE,
    3 'CUSTOMER NO.',
    16 SY-VLINE,
    18 'NAME',
    61 SY-VLINE,
    63 'CITY',
    86 SY-VLINE,
    88 'COUNTRY',
    103 SY-VLINE.
    ULINE.
    FORMAT COLOR 3 OFF.
    *TOP OF PAGE FOR SECONDARY LISTS
    TOP-OF-PAGE DURING LINE-SELECTION.
    *TOP OF PAGE FOR 1ST SECONDARY LIST
    IF SY-UCOMM = 'IONE'.
    ULINE.
    FORMAT COLOR 1.
    WRITE : 'SALES ORDER DETAILS'.
    ULINE.
    FORMAT COLOR 1 OFF.
    FORMAT COLOR 3.
    WRITE : 1 SY-VLINE,
    3 'CUSTOMER NO.',
    16 SY-VLINE,
    18 'SALES ORDER NO.',
    40 SY-VLINE,
    42 'DATE',
    60 SY-VLINE,
    62 'CREATOR',
    85 SY-VLINE,
    87 'DOC DATE',
    103 SY-VLINE.
    ULINE.
    ENDIF.
    FORMAT COLOR 3 OFF.
    *TOP OF PAGE FOR 2ND SECONDARY LIST
    IF SY-UCOMM = 'ITWO'.
    ULINE.
    FORMAT COLOR 1.
    WRITE : 'ITEM DETAILS'.
    ULINE.
    FORMAT COLOR 1 OFF.
    FORMAT COLOR 3.
    WRITE : 1 SY-VLINE,
    3 'SALES ORDER NO.',
    40 SY-VLINE,
    42 'SALES ITEM NO.',
    60 SY-VLINE,
    62 'ORDER QUANTITY',
    103 SY-VLINE.
    ULINE.
    ENDIF.
    FORMAT COLOR 3 OFF.
    *END OF PAGE
    END-OF-PAGE.
    ULINE.
    WRITE :'USER :',SY-UNAME,/,'DATE :', SY-DATUM, 85 'END OF PAGE:',
    SY-PAGNO.
    SKIP.
    *& Form SALES_ORD
    *& FIRST SECONDARY LIST FORM
    FORM SALES_ORD .
    SELECT KUNNR VBELN ERDAT ERNAM AUDAT INTO
    (VBAK-KUNNR, VBAK-VBELN, VBAK-ERDAT, VBAK-ERNAM, VBAK-AUDAT)
    FROM VBAK
    WHERE KUNNR = KNA1-KUNNR.
    WRITE:/1 SY-VLINE,
    VBAK-KUNNR UNDER 'CUSTOMER NO.' HOTSPOT ON,
    16 SY-VLINE,
    VBAK-VBELN UNDER 'SALES ORDER NO.' HOTSPOT ON,
    40 SY-VLINE,
    VBAK-ERDAT UNDER 'DATE',
    60 SY-VLINE,
    VBAK-ERNAM UNDER 'CREATOR',
    85 SY-VLINE,
    VBAK-AUDAT UNDER 'DOC DATE',
    103 SY-VLINE.
    HIDE : VBAK-VBELN.
    ENDSELECT.
    ULINE.
    ENDFORM. " SALES_ORD
    *& Form ITEM_DET
    *& SECOND SECONDARY LIST FORM
    FORM ITEM_DET .
    SELECT VBELN POSNR KWMENG INTO
    (VBAP-VBELN, VBAP-POSNR, VBAP-KWMENG)
    FROM VBAP
    WHERE VBELN = VBAK-VBELN.
    WRITE : /1 SY-VLINE,
    VBAP-VBELN UNDER 'SALES ORDER NO.',
    40 SY-VLINE,
    VBAP-POSNR UNDER 'SALES ITEM NO.',
    60 SY-VLINE,
    VBAP-KWMENG UNDER 'ORDER QUANTITY',
    103 SY-VLINE.
    ENDSELECT.
    ULINE.
    ENDFORM. " ITEM_DET
    REPORT demo_list_at_pf.
    START-OF-SELECTION.
    WRITE 'Basic List, Press PF5, PF6, PF7, or PF8'.
    AT pf5.
    PERFORM out.
    AT pf6.
    PERFORM out.
    AT pf7.
    PERFORM out.
    AT pf8.
    PERFORM out.
    FORM out.
    WRITE: 'Secondary List by PF-Key Selection',
    / 'SY-LSIND =', sy-lsind,
    / 'SY-UCOMM =', sy-ucomm.
    ENDFORM.
    After executing the program, the system displays the basic list. The user can press the function keys F5 , F6 , F7 , and F8 to create secondary lists. If, for example, the 14th key the user presses is F6 , the output on the displayed secondary list looks as follows:
    Secondary List by PF-Key Selection
    SY-LSIND = 14
    SY-UCOMM = PF06
    Example for AT USER-COMMAND.
    REPORT demo_list_at_user_command NO STANDARD PAGE HEADING.
    START-OF-SELECTION.
    WRITE: 'Basic List',
    / 'SY-LSIND:', sy-lsind.
    TOP-OF-PAGE.
    WRITE 'Top-of-Page'.
    ULINE.
    TOP-OF-PAGE DURING LINE-SELECTION.
    CASE sy-pfkey.
    WHEN 'TEST'.
    WRITE 'Self-defined GUI for Function Codes'.
    ULINE.
    ENDCASE.
    AT LINE-SELECTION.
    SET PF-STATUS 'TEST' EXCLUDING 'PICK'.
    PERFORM out.
    sy-lsind = sy-lsind - 1.
    AT USER-COMMAND.
    CASE sy-ucomm.
    WHEN 'FC1'.
    PERFORM out.
    WRITE / 'Button FUN 1 was pressed'.
    WHEN 'FC2'.
    PERFORM out.
    WRITE / 'Button FUN 2 was pressed'.
    WHEN 'FC3'.
    PERFORM out.
    WRITE / 'Button FUN 3 was pressed'.
    WHEN 'FC4'.
    PERFORM out.
    WRITE / 'Button FUN 4 was pressed'.
    WHEN 'FC5'.
    PERFORM out.
    WRITE / 'Button FUN 5 was pressed'.
    ENDCASE.
    sy-lsind = sy-lsind - 1.
    FORM out.
    WRITE: 'Secondary List',
    / 'SY-LSIND:', sy-lsind,
    / 'SY-PFKEY:', sy-pfkey.
    ENDFORM.
    When you run the program, the system displays the following basic list with a the page header defined in the program:
    You can trigger the AT LINE-SELECTION event by double-clicking a line. The system sets the status TEST and deactivates the function code PICK. The status TEST contains function codes FC1 to FC5. These are assigned to pushbuttons in the application toolbar. The page header of the detail list depends on the status.
    Here, double-clicking a line no longer triggers an event. However, there is now an application toolbar containing five user-defined pushbuttons. You can use these to trigger the AT USER-COMMAND event. The CASE statement contains a different reaction for each pushbutton.
    For each interactive event, the system decreases the SY-LSIND system field by one, thus canceling out the automatic increase. All detail lists now have the same level as the basic list and thus overwrite it. While the detail list is being created, SY-LSIND still has the value 1.
    Regards
    Anji

  • For getting purchase order details what are the inputs and outputs

    I need to display purchase order details in EP portal by using integration EP, XI and R/3.
    I dont know what are the Inputs and what are the Outputs.
    Reward points for helpers.
    Cheers,
    Preethika

    Hi Preethika,
    for displaying PO use BAPI : BAPI_PO_GETDETAIL
    Its input is PO number
    Its output are tables PO_HEADER_TEXTS - for PO header data
    PO_ITEMS - for PO line items
    Thanks,
    Rajeev Gupta

  • 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.

  • Creating asset from purchase orders

    Dear Gurus.
    Please let me know how to create asset from purchase orders.
    Thanks
    Rgds,
    Saurabh

    hi,
    First, determine the information that is necessary for creating the purchase order:
    Check in the Purchasing component whether a purchase requisition exists for the asset (Logistics - Materials management - Purchasing).
    Determine the vendor from whom you are ordering the asset. If needed, enter the purchasing data for the vendor.
    Determine the asset number of the asset that is being ordered. If necessary, create a new asset.
    Create the purchase order. If there is a purchase requisition, use it as a reference (in Purchasing: Purchase order - Create).
    In the initial screen, when you specify the account assignment type A (for asset), this determines
    The account assignment to an asset
    How the goods receipt or the invoice receipt is to be handled (are asset values to be posted at the time of the goods receipt or at the time of the invoice receipt).
    Once you have entered the general purchasing data in the first screen (order date, material group, etc.), a dialog box appears. Enter the asset to which account assignment is to be made in this dialog box.
    If the asset master record for your purchase has not yet been created, you can create it directly from within the purchase order transaction.
    Display the order item and its current delivery status (in Purchasing: Purchase order - List display - By account assignment).
    Later, post the goods receipt or the invoice receipt. (The Customizing definition of the account assignment type determines when the asset values are posted - either at goods receipt or at invoice receipt.) See the corresponding documentation for the Materials Management (MM) component.
    regards,
    Siddharth.

  • Extracting Purchase order details

    Hai All,
               I am workng on a report in which I have to display the purchase order and GRN details for a given Purchase Requisition number.
    If the PR has 5 line items and PO is made only for 2 line items, then the purchase order details for only those 2 line items should be displayed, but I am getting default purch ord data for all those 5 line items even though PO is not made for 3 line items.
    Can anyone pls help me on this....

    Hi ,
        Here goes ur solution , Only u have to use EBAN and EKBE for the purpose.The report displays item no wise details of PR with PO and GR. selection options for PR REQ or REQ Date  is used .
    types: begin of int_pr,
         banfn like eban-banfn,
         bnfpo like eban-bnfpo,
         badat like eban-badat,
         ebeln like eban-ebeln,
         bedat like eban-bedat,
         matnr like eban-matnr,
        end of int_pr.
    declaring work area.
    data: pr_wa type table of int_pr,
          pr_wa1 like line of pr_wa,
           prnum(10),prval(10),tot type n.
    types: begin of type_ekbe,
           ebeln like ekbe-ebeln,       " PO NO
           ebelp like ekbe-ebelp,        " ITEM NO IN PO
           belnr like ekbe-belnr,         " GR NO
           end of type_ekbe.
    data: itab_gr type table of type_ekbe,
          wa_gr like line of itab_gr.
    giving selection crieteria
    select-options pr_no for eban-banfn.         " for purchase requistion no.
    select-options pr_dt for eban-badat.         " for pr date
    start-of-selection.
    if pr_no is not initial.
    select banfn bnfpo badat ebeln bedat matnr into corresponding fields of table pr_wa from eban where
    banfn in pr_no and loekz ne 'x'.
    select ebeln ebelp belnr into table itab_gr from ekbe for all entries in pr_wa where ebeln = pr_wa-ebeln and ebelp = pr_wa-bnfpo.
    elseif pr_dt is not initial.
    select banfn bnfpo badat ebeln bedat matnr into corresponding fields of table pr_wa from eban where
    badat in pr_dt and loekz ne 'x' order by badat.
    select ebeln ebelp belnr into table itab_gr from ekbe for all entries in pr_wa where ebeln = pr_wa-ebeln and ebelp = pr_wa-bnfpo.
    endif.
    loop at pr_wa into pr_wa1.
    read table itab_gr into wa_gr with key ebeln = pr_wa1-ebeln  ebelp = pr_wa1-bnfpo.
    if pr_wa1-ebeln ne ' '.
    write: / sy-vline,2(10) pr_wa1-banfn color 2, sy-vline,14(12) pr_wa1-badat color 2, sy-vline, 28(9) pr_wa1-bnfpo color 2, sy-vline, 40(13) pr_wa1-matnr color 2, sy-vline, 55(16) pr_wa1-ebeln color 2, sy-vline, 74(15) pr_wa1-bedat color 2, sy-vline,
    wa_gr-belnr,sy-vline.
    else.
    write: / sy-vline,2(10) pr_wa1-banfn color 2, sy-vline,14(12) pr_wa1-badat color 2, sy-vline, 28(9) pr_wa1-bnfpo color 2, sy-vline, 40(13) pr_wa1-matnr color 2, sy-vline, 55(16) 'not processed' color 6, sy-vline, 74(15) pr_wa1-bedat color 2, sy-vline,
    wa_gr-belnr,sy-vline.
    endif.
    endloop.
    uline at /1(90).
                                 thats all u have to do for getting the required output.

  • How can i search several orders at a time using purchase order numbers?

    Hi,
    I need to search several sales orders by using purchase order numbers at a time instead of
    searching for single order at a time.
    And i need to send several order confirmations to the customers at a time, how can i do this?.
    Help me regarding this.
    Thanks
    Raghu

    Hi,
    Go to VA05N
    On initial screen speciefy PO number and execute then you will get report list
    To send this
    Menu LIST >> SEND TO >> Mail reciepient
    Enter the reciepient & reciepient type and send (see list in attachment tab)
    Kapil

  • How to report Invoice details and also the related Purchase order details

    Hello,
    Any suggestions on How to Report both Invoice details and the related Purchase Order details.
    Ex:
    INvoice Line items Amounts /Qty
    PO Line Items Amounts /Qty
    Thanks in advance
    Jagadish

    Hello,
    Any suggestions on How to Report both Invoice details and the related Purchase Order details.
    Ex:
    INvoice Line items Amounts /Qty
    PO Line Items Amounts /Qty
    Thanks in advance
    Jagadish

  • Price during creating of Draft/Purchase Order fails in SP01 PL04

    Hi,
    we try to port an add-on of us to B1 2005 SP01 PL04. The Add-On create a Draft/Purchase Order by DI Api. Doing so works fine in 2005A SP00 PL08 and PL11.
    Now we try to run it at SP01 and we got wrong prices in the DB.
    Here some sample code in C#:
    SAPbobsCOM.Documents document;
    if(createAsDraftDocument == true)
      document = (SAPbobsCOM.Documents)MainClass.Company.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oDrafts));
    else
      document = (SAPbobsCOM.Documents)(MainClass.Company.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oPurchaseOrders));
    document.DocObjectCode = SAPbobsCOM.BoObjectTypes.oPurchaseOrders;
    filling the documents head data
    // adding a document line
    document.Lines.Add();
    // filling line
    document.Lines.ItemCode = 1;
    document.Lines.SupplierCatNum = otherValue;
    document.Lines.Quantity = 1;
    document.Lines.Price = 1;
    // adding the document
    if(document.Add() != 0)
      throw(new DocumentCreationException(MainClass.Company.GetLastErrorDescription());
      // everything OK now
      // fetch last docentry as docentry and save as xml
      SAPbobsCOM.Documents d = (SAPbobsCOM.Documents)(MainClass.Company.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oDrafts));
      d.GetByKey(Convert.ToInt32(docEntry));
      string fn = @"E:\draft.xml";
      d.SaveXML(ref fn);
    In the XML I found:
    <?xml version="1.0" encoding="UTF-16"?>
    <BOM>
         <BO>
              <AdmInfo>
                   <Object>112</Object>
              </AdmInfo>
              <ODRF>
                   <row>
                        <DocEntry>6</DocEntry>
                        <DocNum>4</DocNum>
                        <DocType>I</DocType>
                        <CANCELED>N</CANCELED>
                        <Handwrtten>N</Handwrtten>
                        <Printed>N</Printed>
                        <DocStatus>O</DocStatus>
                        <InvntSttus>O</InvntSttus>
                        <Transfered>N</Transfered>
                        <ObjType>22</ObjType>
                        <DocDate>20060615</DocDate>
              <DRF1>
                   <row>
                        <DocEntry>6</DocEntry>
                        <LineNum>0</LineNum>
                        <TargetType>-1</TargetType>
                        <TrgetEntry>0</TrgetEntry>
                        <BaseRef/>
              <TaxOnExpFc>0.000000</TaxOnExpFc>
                        <TaxOnExpSc>0.000000</TaxOnExpSc>
                                  <DRF1>
                   <row>
                        <DocEntry>6</DocEntry>
                        <LineNum>0</LineNum>
                        <TargetType>-1</TargetType>
                        <TrgetEntry>0</TrgetEntry>
                        <BaseRef/>
              <TaxOnExpFc>0.000000</TaxOnExpFc>
                        <TaxOnExpSc>0.000000</TaxOnExpSc>
                        <TaxOnExAp>0.000000</TaxOnExAp>
                        <TaxOnExApF>0.000000</TaxOnExApF>
                        <TaxOnExApS>0.000000</TaxOnExApS>
                        <LastPmnTyp/>
                        <LndCstNum>0</LndCstNum>
                        <UseCorrVat>N</UseCorrVat>
                        <BaseType>-1</BaseType>
                        <BaseEntry>0</BaseEntry>
                        <BaseLine>0</BaseLine>
                        <LineStatus>O</LineStatus>
                        <ItemCode>1</ItemCode>
                        <Dscription>1</Dscription>
                        <Quantity>1.000000</Quantity>
                        <ShipDate>20060615</ShipDate>
                        <OpenQty>1.000000</OpenQty>
                        <Price>5.000000</Price>
                        <TaxOnExAp>0.000000</TaxOnExAp>
                        <TaxOnExApF>0.000000</TaxOnExApF>
                        <TaxOnExApS>0.000000</TaxOnExApS>
                        <LastPmnTyp/>
                        <LndCstNum>0</LndCstNum>
                        <UseCorrVat>N</UseCorrVat>
                        <BaseType>-1</BaseType>
                        <BaseEntry>0</BaseEntry>
                        <BaseLine>0</BaseLine>
                        <LineStatus>O</LineStatus>
                        <ItemCode>1</ItemCode>
                        <Dscription>1</Dscription>
                        <Quantity>1.000000</Quantity>
                        <ShipDate>20060615</ShipDate>
                        <OpenQty>1.000000</OpenQty>
                        <Price>5.000000</Price>
    which isn't as we expected and as it worked on PL00.
    This is the same the draft-form of the last draft we created shows:
    Price is 5 instead of the expected price of 1 we assigned through the DI-Api.
    Note: The Article-price in the item master data is set to 5.00.
    Is anyone out there who could help us as our add-on didn#t work any more on the new SP.
    Thanks
    Gerd

    Hi all,
    we found the problem our self. It seems that the handling of 'Price' and 'UnitPrice' differs a little bit between SP00 and SP01.
    Setting the 'UnitPrice' in the document lines instead of of the 'Price' solves the problem.
    A little bit ugly that the functionallity changes and there is no documentation found.
    Greetings
    Gerd

Maybe you are looking for