Can we issue purchase order without price info

Hi,
We had issued purchase orders to a vendor, but we come across that price info has not been maintained for the same. It seems that this is exceptional case. Can we issue purchase order without price info ??
Regards...

Hi,
In general case while creating purchase order price is picked up from purchasing info records which are valid , if the info record is not maintained it is picked up from last purchase order.
But as you said it is purcahse order without info records.
Options available are;
You can manually enter the price in the item overview and details will automatically get calculated in item detail of purchase order
You can mark free delivery indicator in the item overview.
Thanks,
Tushar Patankar

Similar Messages

  • Avoid Purchase Order without Quality info Record

    Hi All,
    I am facing the problem, i.e i want to avoid creating purchase order if the quality info record is not maintained.
    Can we do it ?????, If yes please suggest me how to go about it & what are the control points for the same.
    Please reply ASAP.
    Arun

    Hi
    In material master  If u activate QM proc key.And enter a valid Control key like 0001.system will not allow u to create PO without Info record(QI01).
    If any queries let me know.
    Gopi

  • Purchase Orders without prices

    Hi,
      I' m creating Purchase orders using code, this is ok, but, when check in the puchase orders forms and find the document, the column price is not setting and in the DB (table POR1) the price column is setting. The code is:
    SAPbobsCOM.Documents     oDocuments     =     null;
    oDocuments = (SAPbobsCOM.Documents)SAP_Utils.company.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oPurchaseOrders);
    oDocuments.CardCode = mRow["Proveedor"].ToString();
    oDocuments.DocTotal = Convert.ToDouble(mRow["Cantidad"]) * Convert.ToDouble(mRow["Precio"]);
    oDocuments.DocDate      = DateTime.Now;
    oDocuments.Lines.ItemCode = mRow["Producto"].ToString();
    oDocuments.Lines.Quantity = Convert.ToDouble(mRow["Cantidad"]);
    oDocuments.Lines.Price = Convert.ToDouble(mRow["Precio"]);
    oDocuments.Lines.Currency = mRow["Moneda"].ToString();
    oDocuments.Lines.WarehouseCode = mRow["Bodega"].ToString();
    oDocuments.Lines.LineTotal = Convert.ToDouble(mRow["Cantidad"]) * Convert.ToDouble(mRow["Precio"]);
    oDocuments.Lines.BaseEntry= 0;
    oDocuments.Lines.BaseLine= 0;
    iReturn = oDocuments.Add();
    What is the problem?
    tks for your help..

    Hi Ian,
    It's true that we can get the decimal places setting of company database using sbobobscom. But the problem I'm facing is not that.
    Let me give you an example to show you the incorrect total that I mentioned:
    If you create a Goods Receipt:
    1. Item A with qty=1000 with unitPrice= $1.7755
    Note: Decimal places for Prices is set to 3.
    So, if i enter the unit price and quantity, i will end up getting the total = $1,776
    (because unitprice is $1.7760 instead of $1.7755)
    And it's not correct because I should actually get the total = $1,775.50.
    And that's the reason why I want to enter Total instead of unitPrice so that I can have total  = $1,775.50.
    This is really confusing, because the rounding method of the system is different between SBO2004 and SBO2005.
    In 2004, if you set the decimal places to 3, even when you enter value with more than 3digits after decimal point, it will still save the whole number but only show 3digits after decimal point.
    However in 2005, it will save and show 3digits after decimal point.
    cheers
    erwine

  • Quation rejected but i can issue purchase order for the rejected.

    hi, i have several issues to be solved
    i rejected a quotation but i can issue purchase order for the rejected quotation..
    q1:  why SAP  had given that option?
    q2:How do i restrict user to issue purchase order for rejected quotation?
    q3: what i observed was , accepting the quotation entirely lies with user.so what is the criteria for accepting the quotation.. Is it just the price?? If it is the just price then How do i restrict the user to go always for low price quotation?
    thanks in advance,
    regards,
    srini

    In SAP R/3, RFQ comparision is done on the basis on price only.( including excluding discounts, delivery cost....).
    In true business scenario, lowest cost is not the best solution. There are other qualitative parameters which needs to be considered for taking final decision. These factors can be different for different type of purchases. e.g. for capital goods what is the life of equipment. Total cost simulation is done outside system & PO is created with reference to best fit quote.
    In SRM, we can define parameters against which we can evaluate the quote within the system.
    Hope this is helpful.
    Thanks
    Ashutosh

  • Ammendent to Purchase Orders without changing document Number

    Hi Experts,
    Can we issue amendment to Purchase Order without changing the Purchase Order  Number for change in any of the following parameters:
    (a) Quantity
    (b) Unit Price
    (c) Statutory Levies
    (d) Delivery Schedules
    (e) Technical Specifications
    Kindly advice me.
    Thanks in advance,
    Regards,
    Rounak

    Hi Rakesh,
    Thanks for your suggestion...........
    If incase there is a PO with 100 ton of Steel and after subsequent supply of 40 tons it has been found that some of the above mentioned parameters are changed, thre how can we do the changes/amendents so that we need not issue a seperate PO. also if the supply is over the said demand qty of 100 tons (say 125 tons) how do we account the same in tghe existing PO?
    Kindly advice....
    Regards,
    Rounak

  • GTS 7.2 - Error with account assigned purchase order without material

    All,
    I am creating an account assigned purchase order without any material master in the feeder system (ECC 5.0) and it a standard SAP functionality.
    I am getting the following GTS related pop up message and documents are posted to technically incomplete documents in GTS 7.2.
    "Legal Control: Custs Prod. Mast. Required
    Material                                                  "
    Any ideas on how get rid of this error message
    Edited by: James Puzon on Oct 3, 2008 9:32 PM

    James,
    Even though material numbers are not mandatory on POs in the feeder system (ie in ECC) they ARE mandatory in SAP-GTS.
    This means that every line item (PO, SO, delivery) that is sent to GTS for compliance screening or Customs processing MUST have a material number in the feeder system.  You have a couple of options to resolve this:
    1. Always use a material number on all transactions that you enter in your feeder system if they are exports or imports (ie relevant for GTS). You can create service materials or "dummy" materials in ECC for items such as user manuals, warranties or installation services that are part of a particular shipment.
    2. You can add logic in the interface for GTS to always transfer a particular material number to GTS if the material number is blank on the line item of the feeder system document.  Ideally you would want to link this custom logic to a custom maintenance table in ECC so that you can easily change the material number that is sent to GTS without having to change the code.
    3. Override the error message by changing the message type to a warning or informational message (not recommended because this would require a small code modification because I don't think the message type is configurable for this error).  Even if you did make this code change you would likely run into more issues in GTS because license determination and other GTS services need a material number to function properly.
    Hope this helps.
    Sascha

  • Creation of Purchase Order Without Requisition

    Hi Experts iam new to this forum
    Can u please explain with navigation that how to create a Purchase order without requisition ??

    Navigate to purchasing responsibility.
    use menu --> Purchase order --> Purchase order form.
    This is a very detailed note on how to do that:
    How to Create Purchase Orders (Doc ID 168237.1)
    Regards,
    Paarthy

  • Creation of Purchase order without Quantity

    Dear experts,
    Good Evening,
    My client requirement is to create a purchase order without any quantity but with price ,is it possible by any chance.
    Thanks
    Vijay rebala

    Sorry for not responding ,but business wants purchase order
    That's probably what is wrong with your scenario. Business shouldn't "want a purchase order", Business should want a process that works, irrespective of the transaction.
    It's up to the people that know how the ERP works, to tell the business how they should use it.
    If they are in the negotiation phase, they shouldn't be using a Purchase Order to do it, they are basically exchanging quotations.
    The Purchase Order should be used when you have already agreed to the terms. That's how SAP standard works,.

  • How create a purchase order without imputation using bapi: BAPI_PO_CREATE1

    Hello Forum
    I have an request for purchase order with imputation K (cost center, EBAN-KNTTP). During the liberation of the request for purchase order, and using the Bapi: BAPI_PO_CREATE1, I want to create a Purchase Order without imputation (imputation empty or charge empty).
    The system displays the following error: The request for purchase order, item (position) 10, is attributed to another order...
    I imagine that is because the request for purchase order has imputation (charged) K and the purchase order will have no type of imputation (imputation empty).
    However, manually, Yes, I can create the purchase order. That is, I first release, the request for purchase order. Then I create the order of purchase using ME21 and with reference to request for purchase order, and when SAP returns the items of the request for purchase order, I manually remove the imputation K, and these items to become the purchase order.
    Please support me want to know how to resolve this case, why can not I create a purchase order without imputation to from the request for purchase order with imputation K, using Bapi
    Thank you.
    Greetings,

    Hi,
    In the item overview of the purchase order creation screen (ME21N), you have a column Purchasing Doc and next it item no.  You can give the existing purchase order number here with item no which will create a purchase order, and changes can be made wherever you require.
    Hope this helps.
    Thanks
    Krishna.

  • How can I send purchase order through SAP mail ?

    How can I send purchase order through SAP mail ? Can any one explain whts the NACE settings?

    just  do it as  <b>Anji reddy</b> said to you   ...or else  ...  in the purchase  order trascation  ...print it  ... so that  it will generate the spool request  for that  purchase  order  ....
    so the   the belwo program is for sending <b>the Spool   Request  data   as  Email  to  any Email id  ...</b>
    The code below demonstrates how to retrieve a spool request and email it as a PDF document. Please note for the below program to process a spool request the program must be executed in background otherwise no spool request will be created. Once you have had a look at this there is an modified version of the program which works in both background and foreground. Also see transaction SCOT for SAPConnect administration.
    *& Report  ZSPOOLTOPDF                                                 *
    *& Converts spool request into PDF document and emails it to           *
    *& recipicant.                                                         *
    *& Execution                                                           *
    *& This program must be run as a background job in-order for the write *
    *& commands to create a Spool request rather than be displayed on      *
    *& screen                                                              *
    REPORT  zspooltopdf.
    PARAMETER: p_email1 LIKE somlreci1-receiver
                                        DEFAULT '[email protected]',
               p_sender LIKE somlreci1-receiver
                                        DEFAULT '[email protected]',
               p_delspl  AS CHECKBOX.
    *DATA DECLARATION
    DATA: gd_recsize TYPE i.
    * Spool IDs
    TYPES: BEGIN OF t_tbtcp.
            INCLUDE STRUCTURE tbtcp.
    TYPES: END OF t_tbtcp.
    DATA: it_tbtcp TYPE STANDARD TABLE OF t_tbtcp INITIAL SIZE 0,
          wa_tbtcp TYPE t_tbtcp.
    * Job Runtime Parameters
    DATA: gd_eventid LIKE tbtcm-eventid,
          gd_eventparm LIKE tbtcm-eventparm,
          gd_external_program_active LIKE tbtcm-xpgactive,
          gd_jobcount LIKE tbtcm-jobcount,
          gd_jobname LIKE tbtcm-jobname,
          gd_stepcount LIKE tbtcm-stepcount,
          gd_error    TYPE sy-subrc,
          gd_reciever TYPE sy-subrc.
    DATA:  w_recsize TYPE i.
    DATA: gd_subject   LIKE sodocchgi1-obj_descr,
          it_mess_bod LIKE solisti1 OCCURS 0 WITH HEADER LINE,
          it_mess_att LIKE solisti1 OCCURS 0 WITH HEADER LINE,
          gd_sender_type     LIKE soextreci1-adr_typ,
          gd_attachment_desc TYPE so_obj_nam,
          gd_attachment_name TYPE so_obj_des.
    * Spool to PDF conversions
    DATA: gd_spool_nr LIKE tsp01-rqident,
          gd_destination LIKE rlgrap-filename,
          gd_bytecount LIKE tst01-dsize,
          gd_buffer TYPE string.
    * Binary store for PDF
    DATA: BEGIN OF it_pdf_output OCCURS 0.
            INCLUDE STRUCTURE tline.
    DATA: END OF it_pdf_output.
    CONSTANTS: c_dev LIKE  sy-sysid VALUE 'DEV',
               c_no(1)     TYPE c   VALUE ' ',
               c_device(4) TYPE c   VALUE 'LOCL'.
    *START-OF-SELECTION.
    START-OF-SELECTION.
    * Write statement to represent report output. Spool request is created
    * if write statement is executed in background. This could also be an
    * ALV grid which would be converted to PDF without any extra effort
      WRITE 'Hello World'.
      new-page.
      commit work.
      new-page print off.
      IF sy-batch EQ 'X'.
        PERFORM get_job_details.
        PERFORM obtain_spool_id.
    *** Alternative way could be to submit another program and store spool
    *** id into memory, will be stored in sy-spono.
    *submit ZSPOOLTOPDF2
    *        to sap-spool
    *        spool parameters   %_print
    *        archive parameters %_print
    *        without spool dynpro
    *        and return.
    * Get spool id from program called above
    *  IMPORT w_spool_nr FROM MEMORY ID 'SPOOLTOPDF'.
        PERFORM convert_spool_to_pdf.
        PERFORM process_email.
        if p_delspl EQ 'X'.
          PERFORM delete_spool.
        endif.
        IF sy-sysid = c_dev.
          wait up to 5 seconds.
          SUBMIT rsconn01 WITH mode   = 'INT'
                          WITH output = 'X'
                          AND RETURN.
        ENDIF.
      ELSE.
        SKIP.
        WRITE:/ 'Program must be executed in background in-order for spool',
                'request to be created.'.
      ENDIF.
    *       FORM obtain_spool_id                                          *
    FORM obtain_spool_id.
      CHECK NOT ( gd_jobname IS INITIAL ).
      CHECK NOT ( gd_jobcount IS INITIAL ).
      SELECT * FROM  tbtcp
                     INTO TABLE it_tbtcp
                     WHERE      jobname     = gd_jobname
                     AND        jobcount    = gd_jobcount
                     AND        stepcount   = gd_stepcount
                     AND        listident   <> '0000000000'
                     ORDER BY   jobname
                                jobcount
                                stepcount.
      READ TABLE it_tbtcp INTO wa_tbtcp INDEX 1.
      IF sy-subrc = 0.
        message s004(zdd) with gd_spool_nr.
        gd_spool_nr = wa_tbtcp-listident.
        MESSAGE s004(zdd) WITH gd_spool_nr.
      ELSE.
        MESSAGE s005(zdd).
      ENDIF.
    ENDFORM.
    *       FORM get_job_details                                          *
    FORM get_job_details.
    * Get current job details
      CALL FUNCTION 'GET_JOB_RUNTIME_INFO'
           IMPORTING
                eventid                 = gd_eventid
                eventparm               = gd_eventparm
                external_program_active = gd_external_program_active
                jobcount                = gd_jobcount
                jobname                 = gd_jobname
                stepcount               = gd_stepcount
           EXCEPTIONS
                no_runtime_info         = 1
                OTHERS                  = 2.
    ENDFORM.
    *       FORM convert_spool_to_pdf                                     *
    FORM convert_spool_to_pdf.
      CALL FUNCTION 'CONVERT_ABAPSPOOLJOB_2_PDF'
           EXPORTING
                src_spoolid              = gd_spool_nr
                no_dialog                = c_no
                dst_device               = c_device
           IMPORTING
                pdf_bytecount            = gd_bytecount
           TABLES
                pdf                      = it_pdf_output
           EXCEPTIONS
                err_no_abap_spooljob     = 1
                err_no_spooljob          = 2
                err_no_permission        = 3
                err_conv_not_possible    = 4
                err_bad_destdevice       = 5
                user_cancelled           = 6
                err_spoolerror           = 7
                err_temseerror           = 8
                err_btcjob_open_failed   = 9
                err_btcjob_submit_failed = 10
                err_btcjob_close_failed  = 11
                OTHERS                   = 12.
      CHECK sy-subrc = 0.
    * Transfer the 132-long strings to 255-long strings
      LOOP AT it_pdf_output.
        TRANSLATE it_pdf_output USING ' ~'.
        CONCATENATE gd_buffer it_pdf_output INTO gd_buffer.
      ENDLOOP.
      TRANSLATE gd_buffer USING '~ '.
      DO.
        it_mess_att = gd_buffer.
        APPEND it_mess_att.
        SHIFT gd_buffer LEFT BY 255 PLACES.
        IF gd_buffer IS INITIAL.
          EXIT.
        ENDIF.
      ENDDO.
    ENDFORM.
    *       FORM process_email                                            *
    FORM process_email.
      DESCRIBE TABLE it_mess_att LINES gd_recsize.
      CHECK gd_recsize > 0.
      PERFORM send_email USING p_email1.
    *  perform send_email using p_email2.
    ENDFORM.
    *       FORM send_email                                               *
    *  -->  p_email                                                       *
    FORM send_email USING p_email.
      CHECK NOT ( p_email IS INITIAL ).
      REFRESH it_mess_bod.
    * Default subject matter
      gd_subject         = 'Subject'.
      gd_attachment_desc = 'Attachname'.
    *  CONCATENATE 'attach_name' ' ' INTO gd_attachment_name.
      it_mess_bod        = 'Message Body text, line 1'.
      APPEND it_mess_bod.
      it_mess_bod        = 'Message Body text, line 2...'.
      APPEND it_mess_bod.
    * If no sender specified - default blank
      IF p_sender EQ space.
        gd_sender_type  = space.
      ELSE.
        gd_sender_type  = 'INT'.
      ENDIF.
    * Send file by email as .xls speadsheet
      PERFORM send_file_as_email_attachment
                                   tables it_mess_bod
                                          it_mess_att
                                    using p_email
                                          'Example .xls documnet attachment'
                                          'PDF'
                                          gd_attachment_name
                                          gd_attachment_desc
                                          p_sender
                                          gd_sender_type
                                 changing gd_error
                                          gd_reciever.
    ENDFORM.
    *       FORM delete_spool                                             *
    FORM delete_spool.
      DATA: ld_spool_nr TYPE tsp01_sp0r-rqid_char.
      ld_spool_nr = gd_spool_nr.
      CHECK p_delspl <> c_no.
      CALL FUNCTION 'RSPO_R_RDELETE_SPOOLREQ'
           EXPORTING
                spoolid = ld_spool_nr.
    ENDFORM.
    *&      Form  SEND_FILE_AS_EMAIL_ATTACHMENT
    *       Send email
    FORM send_file_as_email_attachment tables it_message
                                              it_attach
                                        using p_email
                                              p_mtitle
                                              p_format
                                              p_filename
                                              p_attdescription
                                              p_sender_address
                                              p_sender_addres_type
                                     changing p_error
                                              p_reciever.
      DATA: ld_error    TYPE sy-subrc,
            ld_reciever TYPE sy-subrc,
            ld_mtitle LIKE sodocchgi1-obj_descr,
            ld_email LIKE  somlreci1-receiver,
            ld_format TYPE  so_obj_tp ,
            ld_attdescription TYPE  so_obj_nam ,
            ld_attfilename TYPE  so_obj_des ,
            ld_sender_address LIKE  soextreci1-receiver,
            ld_sender_address_type LIKE  soextreci1-adr_typ,
            ld_receiver LIKE  sy-subrc.
    data:   t_packing_list like sopcklsti1 occurs 0 with header line,
            t_contents like solisti1 occurs 0 with header line,
            t_receivers like somlreci1 occurs 0 with header line,
            t_attachment like solisti1 occurs 0 with header line,
            t_object_header like solisti1 occurs 0 with header line,
            w_cnt type i,
            w_sent_all(1) type c,
            w_doc_data like sodocchgi1.
      ld_email   = p_email.
      ld_mtitle = p_mtitle.
      ld_format              = p_format.
      ld_attdescription      = p_attdescription.
      ld_attfilename         = p_filename.
      ld_sender_address      = p_sender_address.
      ld_sender_address_type = p_sender_addres_type.
    * Fill the document data.
      w_doc_data-doc_size = 1.
    * Populate the subject/generic message attributes
      w_doc_data-obj_langu = sy-langu.
      w_doc_data-obj_name  = 'SAPRPT'.
      w_doc_data-obj_descr = ld_mtitle .
      w_doc_data-sensitivty = 'F'.
    * Fill the document data and get size of attachment
      CLEAR w_doc_data.
      READ TABLE it_attach INDEX w_cnt.
      w_doc_data-doc_size =
         ( w_cnt - 1 ) * 255 + STRLEN( it_attach ).
      w_doc_data-obj_langu  = sy-langu.
      w_doc_data-obj_name   = 'SAPRPT'.
      w_doc_data-obj_descr  = ld_mtitle.
      w_doc_data-sensitivty = 'F'.
      CLEAR t_attachment.
      REFRESH t_attachment.
      t_attachment[] = it_attach[].
    * Describe the body of the message
      CLEAR t_packing_list.
      REFRESH t_packing_list.
      t_packing_list-transf_bin = space.
      t_packing_list-head_start = 1.
      t_packing_list-head_num = 0.
      t_packing_list-body_start = 1.
      DESCRIBE TABLE it_message LINES t_packing_list-body_num.
      t_packing_list-doc_type = 'RAW'.
      APPEND t_packing_list.
    * Create attachment notification
      t_packing_list-transf_bin = 'X'.
      t_packing_list-head_start = 1.
      t_packing_list-head_num   = 1.
      t_packing_list-body_start = 1.
      DESCRIBE TABLE t_attachment LINES t_packing_list-body_num.
      t_packing_list-doc_type   =  ld_format.
      t_packing_list-obj_descr  =  ld_attdescription.
      t_packing_list-obj_name   =  ld_attfilename.
      t_packing_list-doc_size   =  t_packing_list-body_num * 255.
      APPEND t_packing_list.
    * Add the recipients email address
      CLEAR t_receivers.
      REFRESH t_receivers.
      t_receivers-receiver = ld_email.
      t_receivers-rec_type = 'U'.
      t_receivers-com_type = 'INT'.
      t_receivers-notif_del = 'X'.
      t_receivers-notif_ndel = 'X'.
      APPEND t_receivers.
      CALL FUNCTION 'SO_DOCUMENT_SEND_API1'
           EXPORTING
                document_data              = w_doc_data
                put_in_outbox              = 'X'
                sender_address             = ld_sender_address
                sender_address_type        = ld_sender_address_type
                commit_work                = 'X'
           IMPORTING
                sent_to_all                = w_sent_all
           TABLES
                packing_list               = t_packing_list
                contents_bin               = t_attachment
                contents_txt               = it_message
                receivers                  = t_receivers
           EXCEPTIONS
                too_many_receivers         = 1
                document_not_sent          = 2
                document_type_not_exist    = 3
                operation_no_authorization = 4
                parameter_error            = 5
                x_error                    = 6
                enqueue_error              = 7
                OTHERS                     = 8.
    * Populate zerror return code
      ld_error = sy-subrc.
    * Populate zreceiver return code
      LOOP AT t_receivers.
        ld_receiver = t_receivers-retrn_code.
      ENDLOOP.
    ENDFORM.
    Girish

  • How to activate "Issue Purchase Orders" option ?

    Hello everybody,
    How can I activate the "Issue Purchase Orders" option ?  At this moment, every time a purchaser creates a PO in Sourcing Cockpit, the PO is created and sent it immediately to the vendor.
    Obviously, I want to change that.. =)
    Somebody knows how can I change this behavior and activate the "issue purchase order" option?
    Thank you very much for your help !
    Diego

    Hello Diego,
    this is exactly what I already told you in my first reply.
    With this customizing option, a PO "trigger" (term used in Post Processing Framework --> term used in output logic !!) is created but not processed immediatly.
    You can find this "waiting" output in transaction "Issue purchase order" and execute it, or let a scheduled report do it.
    When you save the PO in ECS, FM BBP_PROCDOC_SAVE will call this output creation, then level one update tasks are called (physical update of DB) by the COMMIT. Then level 2 update tasks are called. The PO transfer to the backend is one of those last calls.
    So there is no link between PO output and BE transfer.
    Except in case of DUMP, I don't see any reason to block the PO transfer because of PO edition.
    If your PO is not transfered in BE, this is not because of the PO output.
    There is another reason.
    Check PO status : is it "In transfer to exec" or "transfer to exec failed" ?
    Rgds
    Christophe

  • Can we create purchase order through report programming?

    hi experts.....
    can we create purchase order through report programming?If yes plz give me the thread details?

    Hi,
    Use this code in a program by using a BAPI function module
    Anothe rway is using classical/ALV report using call transaction from a report for changing the PO
    loop at i_header.
        header-ref_1         = i_header-legacy.
        headerx-ref_1        = c_x.
        header-doc_type      = i_header-bsart.
        headerx-doc_type     = c_x.
        header-comp_code     = i_header-bukrs.
        headerx-comp_code    = c_x.
        header-purch_org     = i_header-ekorg.
        headerx-purch_org    = c_x.
        header-pur_group     = i_header-ekgrp.
        headerx-pur_group    = c_x.
        header-vendor        = i_header-lifnr.
        headerx-vendor       = c_x.
        concatenate i_header-bedat+4(4)
                    i_header-bedat+0(2)
                    i_header-bedat+2(2)
                    into header-doc_date.
        headerx-doc_date     = c_x.
        header-created_by    = i_header-ernam.
        headerx-created_by   = c_x.
        header-currency      = i_header-waers.
        headerx-currency     = c_x.
        concatenate i_header-kdatb+4(4)
                    i_header-kdatb+0(2)
                    i_header-kdatb+2(2)
                    into header-vper_start.
        headerx-vper_start   = c_x.
        loop at i_items where legacy = i_header-legacy.
          item-po_item            =  i_items-ebelp.
          itemx-po_item           =  i_items-ebelp.
          itemx-po_itemx          =  c_x.
          if i_header-bsart = 'NB'.
            item-material            =  i_items-ematn.
            itemx-material           =  c_x.
            schedule-quantity        =  i_items-menge * 1000.
            schedulex-quantity       =  c_x.
          else.
            item-short_text          = i_items-ematn.
            itemx-short_text         = c_x.
            item-matl_group          = '1000'.
            itemx-matl_group         = c_x.
            schedule-quantity        =  '1'.
            schedulex-quantity       =  c_x.
          endif.
          item-plant               =  i_items-werks.
          itemx-plant              =  c_x.
          schedule-po_item         = i_items-ebelp.
          schedule-sched_line      = '1'.
          schedulex-po_item        = i_items-ebelp.
          schedulex-sched_line     = '1'.
          schedulex-po_itemx       = c_x.
          schedulex-sched_linex    = c_x.
          concatenate  i_items-eildt+0(2)
                       i_items-eildt+2(2)
                       i_items-eildt+4(4)
                       into schedule-delivery_date.
          schedulex-delivery_date  =  c_x.
          item-price_unit          =  i_items-peinh * 100.
          itemx-price_unit         =  c_x.
          item-tax_code            =  i_items-mwskz.
          itemx-tax_code           =  c_x.
          item-shipping            =  i_items-evers.
          itemx-shipping           =  c_x.
          account-po_item          = i_items-ebelp.
          accountx-po_item         = i_items-ebelp.
          accountx-po_itemx        = c_x.
          if i_header-bsart = 'FO'.
            item-pckg_no  = sy-tabix.
            itemx-pckg_no = 'X'.
            limits-pckg_no        = sy-tabix.
            limits-limit          = i_items-overalllimit.
            limits-exp_value      = i_items-expectedoverall.
            posrvaccessvalues-pckg_no    = sy-tabix.
            posrvaccessvalues-line_no    = '0'.
            posrvaccessvalues-serno_line = '00'.
            posrvaccessvalues-percentage = '100.0'.
            posrvaccessvalues-serial_no  = '01'.
            account-serial_no     = '1'.
            accountx-serial_no    = '1'.
            accountx-serial_nox   = c_x.
            account-quantity  = '1'.
            accountx-quantity = c_x.
            call function 'CONVERSION_EXIT_ALPHA_INPUT'
              exporting
                input  = i_items-kostl
              importing
                output = account-costcenter.
            accountx-costcenter   = c_x.
            call function 'CONVERSION_EXIT_ALPHA_INPUT'
              exporting
                input  = i_items-sakto
              importing
                output = account-gl_account.
            accountx-gl_account   = c_x.
            item-acctasscat       = i_items-knttp.
            itemx-acctasscat      = c_x.
            item-item_cat         = i_items-epstp.
            itemx-item_cat        = c_x.
          endif.
          append:item,itemx,schedule,schedulex,account,accountx,limits,posrvaccessvalues.
          clear :item,itemx,schedule,schedulex,account,accountx,limits,posrvaccessvalues.
        endloop.
        call function 'BAPI_PO_CREATE1'
          exporting
            poheader                     = header
            poheaderx                    = headerx
    *   POADDRVENDOR                 =
    *   TESTRUN                      =
    *   MEMORY_UNCOMPLETE            =
    *   MEMORY_COMPLETE              =
    *   POEXPIMPHEADER               =
    *   POEXPIMPHEADERX              =
    *   VERSIONS                     =
    *   NO_MESSAGING                 =
    *   NO_MESSAGE_REQ               =
    *   NO_AUTHORITY                 =
    *   NO_PRICE_FROM_PO             =
            importing
            exppurchaseorder             = ponumber
    *   EXPHEADER                    =
    *   EXPPOEXPIMPHEADER            =
            tables
            return                       = return
            poitem                       = item
            poitemx                      = itemx
    *   POADDRDELIVERY               =
            poschedule                   = schedule
            poschedulex                  = schedulex
            poaccount                    = account
    *   POACCOUNTPROFITSEGMENT       =
            poaccountx                   = accountx
    *   POCONDHEADER                 =
    *   POCONDHEADERX                =
    *   POCOND                       =
    *   POCONDX                      =
            polimits                     = limits
    *   POCONTRACTLIMITS             =
    *   POSERVICES                   =
       posrvaccessvalues            = posrvaccessvalues.
    *   POSERVICESTEXT               =
    *   EXTENSIONIN                  =
    *   EXTENSIONOUT                 =
    *   POEXPIMPITEM                 =
    *   POEXPIMPITEMX                =
    *   POTEXTHEADER                 =
    *   POTEXTITEM                   =
    *   ALLVERSIONS                  =
    *   POPARTNER                    =
        if ponumber eq space.
          loop at return where type = 'E'.
            clear buffer.
            move-corresponding return to e_return.
            concatenate i_header-legacy e_return into buffer.
            transfer buffer to p2_file.
          endloop.
          move-corresponding i_header to i_eheader.
          transfer i_eheader to p3_file.
          loop at i_items where legacy = i_header-legacy.
            move-corresponding i_items to i_eitems.
            transfer i_eitems to p4_file.
          endloop.
        else.
          commit work and wait.
        endif.
        clear:ponumber,header,headerx,item,itemx,account,accountx,limits,return,schedule,schedulex,posrvaccessvalues.
        refresh:item,itemx,account,accountx,limits,return,schedule,schedulex,posrvaccessvalues.
      endloop.
      close dataset p2_file.
      close dataset p3_file.
      close dataset p4_file.
    Regards
    Krishna

  • Profit center for purchase order without account assignment

    I've requirement to include profit centers in purchase orders without account assignment category.
    The trouble is when there is no profit center maintained in material master.
    Is there a way to determine profit center in purchase order for such cases?

    Dear Abinash,
    Define substitution in GGB1 at line item level as shown below:
    Prerequisite : BSEG-WERKS = Maintain plant
    Substitution : BSEG-PRCTR = maintain profit centre as constant value
    After define it, assign to the co.code.
    Regards,
    Mukthar

  • FM / BAPI Inbound delivery creation for a Purchase Order without material

    Dear All,
    I have a requirement to create a Inbound Delivery for a Purchase order without material number. The Purchase Order has only Material text and no material number. Please let me know a BAPI or FM to create inbound delivery in this case where there is no material defined on PO. I require BAPI / FM  since I have to make a web-service for the same.
    Thanks in advance!
    Abhishek

    Hi I did a coding in one of the userexit. If ekpo-matnr is empty then fill
    KOMDLGN-UMVKZ = 1
    KOMDLGN-UMVKN = 1
    KOMDLGN-MEINS = EKPO-MEINS
    This parameters i.e. Qty conversion are necessary and since MATNR does not exists it has to be filled.

  • 'Minimum purchase order quantity' in info record doesn't work

    Hi,
    I've maintain the value of 'Minimum purchase order quantity' and 'Maxmum purchase order quantity' in info record via t-code: ME12, but it doesn't work.  No any affection happened to the newly created PR.
    Please kindly advise.
    Best Regards.

    Hello Rolf
    The setting you are looking for is done in
    SPRO --> Materials Management --> Purchasing --> Environment Data --> Define Attributes of System Messages --> System messages
    Go to
    Version                    00
    Application Area       06
    Message No            216
    Make the Category to E - Error instead of W - Warning
    Hope this is what you are looking for
    Regards
    Amit

Maybe you are looking for

  • Airplay no longer working on iTunes 11.1.3 Windows 8.1

    I have a PC connected by ethernet cable to a router, which is sending a wireless IPv4 signal to an airport express on my home network, which is in turn connected to some speakers. I also have an Apple TV connected to the same network. Airplay worked

  • How do I get PDF files from Windonws into my iPod Touch?

    I've downloaded PDF's frm websites directly into my ipod touch, but I've got several on my PC that I want to transfer as well. How do I do this from iTunes?

  • Cisco Interaction Manager with Finesse 9.1.1

    Is it possible to place Cisco Interaction Manager in finesse desktop container as a gadget? As I have tried to do that but CIM login interface is not displayed on finesse desktop, instead I am getting white display'

  • Certification of Oracle 8i r2

    Hi, for which Linuxplatforn is Oracle 8i Release 2. certified? In the Documentation is a reference to the Linux FAQ, but there is no information about this matter. Thanks for answers

  • Avvenu no longer works

    Now that Avvenu has sold off to Nokia and has been sunsetted what am I supposed to use now?  Avvenu did exactly what I wanted.  Win-Hand is incompatible with my firewall.  The firewall vpn client does not support Palm.  I do not want to put files up