Purchase Order out put

hi
i have config the printer out put for purchase order
when i click the print preview the following error is comming
how to solve the problem 
Enter 1 (processing successful) in the "Processing time spot" field if you want to display the messages for this document that have already been outputted.
with regards
Raghuram

Hi,
I think your PO has already been processed before. That may be the reason you are getting that error message. To re-process your PO, follow the steps below:
- Invoke the Messages screen as follows:
Via the purchasing document itself (Header -->Messages) or
Via <Purchasing document> --> Messages --> Print/transmit.
- Enter the processing status 1 (successfully processed) and display the messages.
- Select the desired message and choose Goto --> Message details.
- Choose Edit --> Repeat message or Change message.
The system inserts the new message. If a change message is involved, the system sets the Change indicator.
- Save your data.
Regards,
Narayana.

Similar Messages

  • User based authorization to create Purchase Orders out of Purchase Req.?

    Hello,
    I have the following requiment for my client:
    User based authorization to create Purchase Orders out of Purchase Req.?
    I am told the same can be achieved using same standard menu path in IMG/Customizing.
    Please advise with the menu path and detials, Usefull answers will be rewarded.
    Thanks

    Using OMET Function Authorization, you can restrict users to create Purchase orders without Purchase Reqn.
    Using OMET trxn code Create one Function Authorixation Called pr and in General Parameters tab Select the Field Selection and in Possible reference Objects Tab Mark the With ref to Prs check box and save.
    Next, you've got to associate via SU01 
    Click Parameters, insert a new parameter id EFB to the authorization code. 
    Type in Parameters value you want e.g. XX 
    You have to assign the control for ALL the SAP buyers via thier SAP users id.
    Logoff and login again. Then try to create a Purchase Order without a reference.
    From Next time whenever you try to create with out referring PR it will not allow you to Save PO.
    Regards,
    Ashok

  • Is it Possible in Purchase Order that putting the BOM, all the components ?

    Is it Possible in Purchase Order that putting the BOM, all the components of that particular ges populated in the Rowt ? This is necessary to select single - single items is PO..
    We are also using MRP and Forecast. We want to use this method in case of placing URGENT Purchase Order without considering WH stock + PO ordered + ....................
    What kind of Query we would write , that  putting the BOM in the UDF, the componenets get populated in Purchase Order...
    Please give complete query.................

    The query I have provided earlier needs to be set in the ItemCode field at the row level and not on your User field at the header.
    The query below (same as earlier with the addition of the user field name - please verify) will show the Child Items of the BOM item who code you have entered at the Header level in your UDF.
    SELECT T0.Code FROM [dbo\].[ITT1\] T0 WHERE T0.Father = $\[OPOR.U_BOMNAME]
    This will not automatically fire but the user has to first enter the Vendor Code and then enter the U_BOMName and then in the Item code field press Shift+F2 which will fire the above query FMS displaying the child Items for this BOM.
    Suda

  • Sales order(out put edit)

    dear all,
    hi, i would like to know about the out put edit in a sales order, after giving ba00(order confirmation), then i went for comunication method - its given as LPO1,
    but i wanted to give it as LOC1 and save the order.
    but after giving the LOC1 and after pressing on enter button, i got a caution device LOC1 doesn't exist.
    what i have to do to procced  further on, if some one knows about this do let me know.
    Regards,
    sushmitha.

    Hi,
    Are you using output determination or you are entering manually the output type BA00 in the sales order ?
    If you are entering manually the output type BA00 in the sales order than you should just go to "Communication method" button and select what printer you like. At this moment the save button is not active; you should press back and after that "Save".
    If you are using output determination and the BA00 output type is coming automatically in your sales order (if wrong printer) than check in transaction VV12 for output type BA00 what conditions are maintained and here you have to change the default printer.
    Regards,
    Valentin

  • BAPI to change purchase order to put deletion flag

    Hello Guru's,
            We are about to archive data & for that we need that according to date range all open purchase order ,open purchase requsitions & open RFQ should be marked for deletion.
    Is there some BAPI to do so.Please guide.

    *DELETING FLAG *
    REPORT ZMMR_DELETEPO NO STANDARD PAGE HEADING MESSAGE-ID zisb.
    tables : zvtls_sap.
    *C-- Types Declarations
    TYPES : BEGIN OF tp_flatfile_vtls,
            ebeln(10),
            ebelp type ekpo-ebelp,
            END OF tp_flatfile_vtls.
    *=====================================================================
                      INTERNAL TABLES DECLARATION
    *=====================================================================
    DATA:  t_flatfile_vtls TYPE tp_flatfile_vtls OCCURS 0 WITH HEADER LINE.
    data : begin of t_sapdata occurs 0,
           po like zvtls_sap-posap,
           item like zvtls_sap-itemsap,
           end of t_sapdata.
    data : begin of t_flatfile_vtls1 occurs 0,
           po(10),
           item like zvtls_sap-itemsap,
           end of t_flatfile_vtls1.
    data : begin of t_update occurs 0,
           mandt like zvtls_sap-mandt,
           povtls like zvtls_sap-povtls,
           itemvtls like zvtls_sap-itemvtls,
           posap like zvtls_sap-posap,
           itemsap like zvtls_sap-itemsap,
           aedat like zvtls_sap-aedat,
           paedt like zvtls_sap-paedt,
           loekz like zvtls_sap-loekz,
           end of t_update.
    data : begin of t_poheader occurs 0,
           po like zvtls_sap-posap,
           end of t_poheader.
    data : begin of t_poitem occurs 0,
           po like zvtls_sap-posap,
           item like zvtls_sap-itemsap,
           end of t_poitem.
    DATA : BEGIN OF T_MESSAGE OCCURS 0,
           MSGTY,
           MSGID(2),
           MSGNO(3),
           MSGTX(100),
           PO like zvtls_sap-povtls,
           item like zvtls_sap-itemvtls,
           END OF T_MESSAGE.
    DATA : BEGIN OF t_bapi_poheader OCCURS 0.
            INCLUDE STRUCTURE bapimepoheader.
    DATA : END OF t_bapi_poheader.
    DATA : BEGIN OF t_bapi_poheaderx OCCURS 0.
            INCLUDE STRUCTURE bapimepoheaderx.
    DATA : END OF t_bapi_poheaderx.
    DATA : BEGIN OF t_bapi_poitem OCCURS 0.
            INCLUDE STRUCTURE bapimepoitem.
    DATA : END OF t_bapi_poitem.
    DATA : BEGIN OF t_bapi_poitemx OCCURS 0.
            INCLUDE STRUCTURE bapimepoitemx.
    DATA : END OF t_bapi_poitemx.
    DATA : BEGIN OF t_bapireturn OCCURS 0.
            INCLUDE STRUCTURE bapiret2.
    DATA : END OF t_bapireturn.
    *=====================================================================
                      V A R I A B L E S
    *=====================================================================
    DATA: w_success(6)  TYPE n,
          w_bklas like t023-bklas,
          w_curryear(4),
          w_begda like sy-datum,
          w_endda like sy-datum,
          w_begyr(4),
          w_endyr(4),
          w_currmon(2),
          w_assetclass like ankt-anlkl,
          w_price type p,
          w_recordsap type i,
          w_povtls(10),
          w_count type i.
    DATA:  w_filepath TYPE rlgrap-filename,
           w_rc TYPE sy-subrc,
           w_sscrfields_ucomm1   TYPE sscrfields-ucomm,
           w_file1 TYPE string,
           w_file2 TYPE FILENAME-FILEINTERN.
    *=====================================================================
                      C O N S T A N T S
    *=====================================================================
    CONSTANTS: c_x              TYPE  c         VALUE 'X',
               c_hyp            TYPE  c         VALUE '-',
               c_err            TYPE  bdc_mart  VALUE 'E'.
    CONSTANTS:  c_slash(1)            TYPE c VALUE '/',
                c_hash(1)             TYPE c VALUE '#',
                c_pipe                TYPE c VALUE '|',
                c_1                   TYPE i VALUE 1,
                c_zero                TYPE n VALUE '0',
                c_rg1(3)              TYPE c VALUE 'rg1',
                c_gr3(3)              TYPE c VALUE 'GR3',
                c_gr2(3)              TYPE c VALUE 'GR2',
                c_e(1)                TYPE c VALUE 'E',
                c_filepath(8)         TYPE c VALUE '/interf/',
                c_filetype(10)        TYPE c VALUE 'ASC'.
    CONSTANTS : c_bapimepoheaderx   TYPE x030l-tabname
                                   VALUE 'bapimepoheaderx',
               c_bapimepoitem      TYPE  x030l-tabname
                                   VALUE 'bapimepoitem',
               c_bapimepoaccount   TYPE  x030l-tabname
                                   VALUE 'bapimepoaccount',
               c_t_bapi_poheader(15)        TYPE c
                                            VALUE 't_bapi_poheader',
               c_t_bapi_poitem(13)          TYPE c
                                            VALUE 't_bapi_poitem',
               c_t_bapi_poitemx(14)         TYPE c
                                            VALUE 't_bapi_poitemx',
               c_t_bapi_poheaderx(16)       TYPE c
                                            VALUE 't_bapi_poheaderx'.
    CLASS cl_abap_char_utilities DEFINITION LOAD.
    CONSTANTS:con_tab  TYPE c VALUE cl_abap_char_utilities=>horizontal_tab.
    *======================================================================
                           SELECTION SCREEN
    *======================================================================
    SELECTION-SCREEN BEGIN OF BLOCK inputpath WITH FRAME TITLE text-001.
    SELECTION-SCREEN : BEGIN OF BLOCK blk2 WITH FRAME TITLE text-002.
    PARAMETERS : p_fore RADIOBUTTON GROUP rg1
                        USER-COMMAND pc,
                 p_back RADIOBUTTON GROUP rg1 DEFAULT 'X'.
    SELECTION-SCREEN : END OF BLOCK blk2.
    SELECTION-SCREEN : BEGIN OF BLOCK blk1 WITH FRAME TITLE text-003.
    PARAMETERS :  p_file1 LIKE rlgrap-filename OBLIGATORY MODIF ID gr2.
    PARAMETERS :  p_afile1 LIKE rlgrap-filename OBLIGATORY MODIF ID gr3.
    SELECTION-SCREEN : END OF BLOCK blk1.
    SELECTION-SCREEN END OF BLOCK inputpath.
    *C-- Initialization Event
    INITIALIZATION.
      CLEAR w_filepath.
      CONCATENATE c_filepath sy-sysid c_slash sy-mandt c_slash INTO
      w_filepath.
      CONDENSE w_filepath NO-GAPS.
      p_file1 = text-008.
      p_afile1 = text-009.
    *======================================================================
                           SELECTION SCREEN EVENTS
    *======================================================================
    *C-- Selection Screen Output
    AT SELECTION-SCREEN OUTPUT.
      IF p_fore = c_x.
        w_sscrfields_ucomm1 = space.
      ELSE.
        w_sscrfields_ucomm1 = c_rg1.
      ENDIF.
      LOOP AT SCREEN.
    *C--Modify selection screen if presentation
    *C--or application server radio button is chosen
        IF w_sscrfields_ucomm1 = space.
          IF screen-group1 = c_gr3.
            screen-active = c_zero.
          ENDIF.
        ELSE.
          IF screen-group1 = c_gr2.
            screen-active = c_zero.
          ENDIF.
        ENDIF.
        if screen-name = 'P_AFILE1'.
          screen-input = 0.
        ENDIF.
        MODIFY SCREEN.
      ENDLOOP.
    *C-- Selection Screen VALUE-REQUEST FOR File path
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file1.
      IF p_fore EQ c_x.
        CALL FUNCTION 'F4_FILENAME'
          EXPORTING
            program_name  = syst-cprog
            dynpro_number = syst-dynnr
          IMPORTING
            file_name     = p_file1.
      ENDIF.
    *C-- At Start of the Selection Process
    START-OF-SELECTION.
      IF p_fore EQ c_x.
        w_file1 = p_file1.
      ELSE.
        w_file2 = p_afile1.
      ENDIF.
      IF p_fore EQ c_x. " Presentaion Server
    *C--Validations for the input files
        PERFORM validate_pre_file USING p_file1.
    *C-- Load the contents of the input file into the internal table
        PERFORM upload_file TABLES t_flatfile_vtls
                            USING w_file1
                            CHANGING w_rc.
        IF w_rc <> 0.
          MESSAGE s006 DISPLAY LIKE c_e.
        ENDIF.
      ELSE. " Application Server
    *C--Validations for the input files
        PERFORM validate_app_file USING  w_file2.
    *C-- Load the contents of the input file into the internal table
        PERFORM upload_file_app TABLES t_flatfile_vtls
                                USING w_file2
                                CHANGING w_rc.
      ENDIF.
      loop at t_flatfile_vtls.
        CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
          EXPORTING
            input  = t_flatfile_vtls-ebeln
          IMPORTING
            output = t_flatfile_vtls1-po.
        CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
          EXPORTING
            input  = t_flatfile_vtls-ebelp
          IMPORTING
            output = t_flatfile_vtls1-item.
        append t_flatfile_vtls1.
        clear t_flatfile_vtls1.
      endloop.
      perform get_podata.
      loop at t_poheader.
        perform move_to_bapi.
        perform call_bapi.
      endloop.
      PERFORM STORE_MESSAGES TABLES T_MESSAGE.
    *&      Form  validate_pre_file
        Routine to validate presentation server file path.
         -->fp_name  text
    FORM validate_pre_file USING fp_name TYPE rlgrap-filename.
      DATA : l_result,
             l_filename TYPE string.
      l_filename = fp_name.
      CLEAR l_result.
      CALL METHOD cl_gui_frontend_services=>file_exist
        EXPORTING
          file                 = l_filename
        RECEIVING
          result               = l_result
        EXCEPTIONS
          cntl_error           = 1
          error_no_gui         = 2
          wrong_parameter      = 3
          not_supported_by_gui = 4
          OTHERS               = 5.
      IF sy-subrc <> 0.
        MESSAGE s007 DISPLAY LIKE c_e.
        LEAVE LIST-PROCESSING.
      ELSEIF l_result IS INITIAL.
        MESSAGE s008 DISPLAY LIKE c_e.
        LEAVE LIST-PROCESSING.
      ENDIF.
    ENDFORM.                    " validate_pre_file_hdr
    *&      Form  validate_app_file
          text - Checks if the path entered and filename is correct
    FORM validate_app_file USING  fp_file  TYPE FILENAME-FILEINTERN.
      data : l_fname(60).
      CALL FUNCTION 'FILE_GET_NAME'
        EXPORTING
          LOGICAL_FILENAME = FP_FILE
          OPERATING_SYSTEM = SY-OPSYS
        IMPORTING
          FILE_NAME        = L_FNAME
        EXCEPTIONS
          FILE_NOT_FOUND   = 1
          OTHERS           = 2.
      IF SY-SUBRC = '0'.
        OPEN DATASET  L_FNAME FOR INPUT IN TEXT MODE ENCODING DEFAULT.
        IF sy-subrc NE 0.
          MESSAGE s007 DISPLAY LIKE c_e.
        ELSE.
          CLOSE DATASET l_fname.
        ENDIF.
      ENDIF.
    ENDFORM.                    " validate_app_file
    *&      Form  upload_file
          Routine to upload data from file to tables.
         -->P_fp_flatfile
         -->P_fp_file
         <--P_fp_rc
    FORM  upload_file TABLES   fp_flatfile
                      USING    fp_file TYPE string
                      CHANGING fp_rc TYPE sy-subrc.
      IF fp_flatfile[] IS INITIAL.
        CALL FUNCTION 'GUI_UPLOAD'
          EXPORTING
            filename                = fp_file
            filetype                = c_filetype
            has_field_separator     = c_x
          TABLES
            data_tab                = fp_flatfile
          EXCEPTIONS
            file_open_error         = 1
            file_read_error         = 2
            no_batch                = 3
            gui_refuse_filetransfer = 4
            invalid_type            = 5
            no_authority            = 6
            unknown_error           = 7
            bad_data_format         = 8
            header_not_allowed      = 9
            separator_not_allowed   = 10
            header_too_long         = 11
            unknown_dp_error        = 12
            access_denied           = 13
            dp_out_of_memory        = 14
            disk_full               = 15
            dp_timeout              = 16
            OTHERS                  = 17.
        MOVE sy-subrc TO fp_rc.
      ENDIF.
    ENDFORM.  " upload_file
    *&      Form  upload_file_app
          text
         -->FP_FLATFILEtext
         -->FP_FILE    text
         -->FP_RC      text
    FORM  upload_file_app TABLES   fp_flatfile
                          USING    fp_file TYPE FILENAME-FILEINTERN
    CHANGING fp_rc TYPE sy-subrc.
      DATA: l_string TYPE tedata-data.
      DATA: wa_data_file TYPE tp_flatfile_vtls,
            l_wllength TYPE i,
            FNAME(60).
      CALL FUNCTION 'FILE_GET_NAME'
        EXPORTING
          LOGICAL_FILENAME = FP_FILE
          OPERATING_SYSTEM = SY-OPSYS
        IMPORTING
          FILE_NAME        = FNAME
        EXCEPTIONS
          FILE_NOT_FOUND   = 1
          OTHERS           = 2.
      IF SY-SUBRC = 0.
        OPEN DATASET  FNAME FOR INPUT IN TEXT MODE ENCODING DEFAULT.
        IF sy-subrc NE 0.
    *C-- commented by Bikash
         MESSAGE s107(yaero_ps) DISPLAY LIKE c_e.
          message e008.
        ELSE.
          DO.
            CLEAR: l_string.
            READ DATASET  FNAME INTO l_string LENGTH l_wllength.
            IF sy-subrc NE 0.
              EXIT.
            ELSE.
              SPLIT l_string AT con_tab INTO   wa_data_file-ebeln
                                               wa_data_file-ebelp.
              APPEND wa_data_file TO fp_flatfile.
            ENDIF.
          ENDDO.
          CLOSE DATASET  FNAME.
        ENDIF.
      ENDIF.
    ENDFORM.  " upload_file_app
    *&      Form  get_podata
          text
    form get_podata.
      select *
      into table t_update
      from zvtls_sap
      for all entries in t_flatfile_vtls1
       where itemvtls = t_flatfile_vtls1-item
      and povtls = t_flatfile_vtls1-po.
      sort t_update by posap itemsap.
      loop at t_update.
        at new posap.
          t_poheader-po = t_update-posap.
          append t_poheader.
          clear t_poheader.
        endat.
        t_poitem-po = t_update-posap.
        t_poitem-item = t_update-itemsap.
        append t_poitem.
        clear t_poitem.
        t_update-paedt = sy-datum.
        t_update-loekz = 'X'.
        modify t_update.
      endloop.
      modify zvtls_sap from table t_update.
    endform.                    "get_podata
    *&      Form  move_to_bapi
          text
    form move_to_bapi.
      t_bapi_poheader-po_number = t_poheader-po.
      CLEAR t_bapi_poheaderx.
      PERFORM fill_check_structure USING c_bapimepoheaderx
                                         c_t_bapi_poheader
                                         c_t_bapi_poheaderx
                                         c_x.
      refresh : t_bapi_poitem,t_bapi_poitemx.
      loop at t_poitem where po = t_poheader-po.
        clear t_bapi_poitem.
        t_bapi_poitem-po_item = t_poitem-item.
        t_bapi_poitem-delete_ind = 'X'.
        CLEAR t_bapi_poitemx.
        PERFORM fill_check_structure USING c_bapimepoitem
                                           c_t_bapi_poitem
                                           c_t_bapi_poitemx
                                           c_x.
        t_bapi_poitemx-po_item = t_poitem-item.
        t_bapi_poitemx-po_itemx = c_x.
        APPEND t_bapi_poitem.
        APPEND t_bapi_poitemx.
        clear t_bapi_poitem.
        clear t_bapi_poitemx.
      endloop.
    endform.                    "move_to_bapi
    *&      Form  call_bapi
          This form Routine is used to commit the data records
    FORM call_bapi .
      DATA : l_msgty      TYPE c,
             l_msgid(2)   TYPE c,
             l_msgno(3)   TYPE c,
             l_msgtx(100) TYPE c,
             l_errflag    TYPE c.
      CLEAR: t_bapireturn.
      REFRESH: t_bapireturn.
      *CALL FUNCTION 'BAPI_PO_CHANGE'*
        EXPORTING
          PURCHASEORDER = T_POHEADER-PO
          POHEADER      = T_BAPI_POHEADER
          POHEADERX     = T_BAPI_POHEADERX
        TABLES
          RETURN        = T_BAPIRETURN
          POITEM        = T_BAPI_POITEM
          POITEMX       = T_BAPI_POITEMX.
      READ TABLE t_bapireturn WITH KEY type = c_err TRANSPORTING NO FIELDS.
      IF sy-subrc NE 0.
        CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
          EXPORTING
            wait = c_x.
      ENDIF.
    *C-- Write messages
      WRITE: / 'PO Number', t_poheader-po.
      clear : t_update,w_povtls.
      read table t_update with key posap = t_poheader-po.
      w_povtls = t_update-povtls.
      CLEAR l_errflag.
      LOOP AT t_bapireturn.
        CLEAR: l_msgty, l_msgid, l_msgno, l_msgtx.
        l_msgty = t_bapireturn-type.
        l_msgid = t_bapireturn-id.
        l_msgno = t_bapireturn-number.
        l_msgtx = t_bapireturn-message.
        WRITE: / l_msgty, l_msgid, l_msgno, l_msgtx.
        if l_msgtx cs t_poheader-po.
          w_count = w_count + 1.
          loop at t_update.
            if sy-tabix = w_count.
              t_message-item = t_update-itemvtls.
            endif.
          endloop.
        endif.
        t_message-msgty = l_msgty.
        t_message-msgid = l_msgid.
        t_message-msgno = l_msgno.
        t_message-msgtx = l_msgtx.
        t_message-po = w_povtls.
        append t_message.
        clear t_message.
        IF l_msgty EQ c_err.
          l_errflag = c_x.
        ENDIF.    " l_msgty EQ 'E'
      ENDLOOP.
      ULINE.
      IF l_errflag NE c_x.
        w_success = w_success + 1.
      ENDIF.    " l_errflag NE C_X
    endform.                    "call_bapi
    *&      Form  fill_check_structure
          This form Routine will check whether the specified structure
          exist/active
    FORM fill_check_structure  USING    fp_tabname TYPE any
                                        fp_orgtabname TYPE any
                                        fp_chktabname TYPE any
                                        fp_check TYPE c.
      FIELD-SYMBOLS : <fs_chk>, <fs_org>.
      DATA:    l_char1(61)  TYPE c,
               l_char2(61)  TYPE c.
      DATA:    BEGIN OF tl_nametab OCCURS 60.
              INCLUDE STRUCTURE x031l.
      DATA:    END OF tl_nametab.
      REFRESH tl_nametab.
      CALL FUNCTION 'RFC_GET_NAMETAB'
        EXPORTING
          tabname          = fp_tabname
        TABLES
          nametab          = tl_nametab
        EXCEPTIONS
          table_not_active = 1
          OTHERS           = 2.
      IF sy-subrc <> 0.
        CLEAR tl_nametab.
      ENDIF.
      LOOP AT tl_nametab.
        CLEAR: l_char1, l_char2.
        CONCATENATE fp_chktabname c_hyp tl_nametab-fieldname INTO l_char1.
        ASSIGN (l_char1) TO <fs_chk>.
        CONCATENATE fp_orgtabname c_hyp tl_nametab-fieldname INTO l_char2.
        ASSIGN (l_char2) TO <fs_org>.
        IF <fs_org> IS NOT INITIAL.
          <fs_chk> = fp_check.
        ENDIF.
      ENDLOOP.
    ENDFORM.                    " fill_check_structure
    *&      Form  STORE_MESSAGES
          text
         -->FP_MESSAGEStext
    FORM STORE_MESSAGES TABLES FP_MESSAGES STRUCTURE T_MESSAGE.
      DATA: wl_output_data LIKE t_MESSAGE.
      DATA: l_catstr TYPE string.
      DATA: l_fieldvalue TYPE string.
      DATA: l_index TYPE i VALUE 1.
      DATA: L_FNAME(60).
      FIELD-SYMBOLS <fs>.
      CLEAR l_catstr.
      CALL FUNCTION 'FILE_GET_NAME'
        EXPORTING
          LOGICAL_FILENAME = '/USR/SAP/VTLS/POCHANGE/LOG'
          OPERATING_SYSTEM = SY-OPSYS
        IMPORTING
          FILE_NAME        = L_FNAME
        EXCEPTIONS
          FILE_NOT_FOUND   = 1
          OTHERS           = 2.
      IF SY-SUBRC = '0'.
        IF fp_messages[] IS NOT INITIAL.
          OPEN DATASET L_FNAME FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.
          IF sy-subrc NE 0.
            LEAVE LIST-PROCESSING.
          ELSE.
            LOOP AT fp_messages INTO wl_output_data.
              DO.
               ASSIGN COMPONENT l_index OF STRUCTURE wl_output_data TO <fs>.
                IF sy-subrc <> 0.
                  EXIT.
                ENDIF.
                MOVE <fs> TO l_fieldvalue.
                IF l_catstr IS NOT INITIAL.
                  CONCATENATE l_catstr l_fieldvalue INTO l_catstr SEPARATED
                  BY con_tab.
                ELSE.
                  MOVE l_fieldvalue TO l_catstr.
                ENDIF.
                l_index = l_index + c_1.
                CLEAR l_fieldvalue.
                CLEAR <fs>.
              ENDDO.
              l_index = c_1.
              TRANSFER l_catstr TO L_FNAME .
              CLEAR wl_output_data.
              CLEAR l_catstr.
            ENDLOOP.
            CLOSE  DATASET L_FNAME.
          ENDIF.
        ENDIF.
      ENDIF.
    ENDFORM.                    "STORE_MESSAGES

  • Times on Purchase Orders in APO or R/3

    Hi Gurus -
    We have a production schedule for finished goods  and semi finished goods in APO.
    The planned orders(production schedule) are then used in R/3 PP MRP for raw materials planning.
    For some of the raw materials, the storage space in the factory is limited due to some constraints and hence multiple shipments have to be scheduled each day.  These could be for the same ingredient or different ingredients depending on the product mix. For example, first truck at 6 AM, second at 2 PM and the third at 10 PM.  The timing of these trucks has to be in sync with the APO production schedule.
    Right now since MRP can only go the daily bucket level, the MRP run creates a single Purchase Requisition per day which is then converted into a Purchase Order. They also have to manually enter all the exact timing detail of the purchase orders before putting it up for all of the factory to see and also call the vendor and tell them about what times they have to be delivered. Is there any way to automate this?
    The desired output is a Purchase Requisition with times on it( one at 6 AM, 2 PM and 10 PM) which are in sync with the planned orders in APO, which can then be converted into Purchase Orders
    Can you please let me know what is the best way to do this?
    I was thinking about actually sending these special raw materials into APO and plan them in APO using the PPDS heuristic, that way the purchase requisitions actually have the times on it. The vendors are not modeled in APO but my assumption is when these Purchase requisitions flow through into R/3, they would read the vendor list and pick up the vendor.
    Is there any functionality with R/3 MRP to create Preqs by time? I have also asked this question in the PP forum since this question deals with both the systems.
    Regards
    Varun

    Hi Shailaja,
    If this approval is done through ESS, the Time administrator needs to manually transfer the approved data to IT2001 Using RPTARQPOST program.
    Also, check the scenario in 'PTARQ' transaction.
    If this helps, pl do reward.
    Thanks
    Narasimha

  • Quantities captured in Purchase Order from Sales Order

    Hi,
    Here is the scenario:
    1. Sales Order: Ordered 2 units of item A.
    2. Item A in warehouse = 1 unit. Therefore, I'm short of 1 unit.
    3. Tick Purchase Order in the logistic tab.
    4. When I click Add sales order, Purchase Order confirmation window appear.
    5. Quantities captured in the PO confirmation order is 2 units.
    The quantities for PO should be 1 unit, isn't it?
    This is weird. I tested this a few days ago. The PO only captured the quantities that I'm short of, not the full quantities.

    Hi Joyce
    As per your scenario if there are two items in sales order and if u make a purchase order out of it it would have 2 items in it
    because it does not take into account the MRP aspect it directly links a direct link between sale and purchase order in the backend and also there exist a link between line items and there quantities
    if u wana run the system eeping in mind the MRP concept then u would require to run the purchase order from MRP
    Regards
    Manish

  • New Tab in PO (Purchase Order)

    Dear all.
       I need to create a new Tab in the Purchase Order to put a new field. At the moment i have implemented 2 BADIS
    ZME_PROCESS_PO_CUST and ZME_GUI_PO_CUST. At this moment i have 2 main problens:
         1 -  a can only saw this new tab when using the transaction ME23N.
         2 - This new tab, and the field in this tab don't have any data.
    Best Regards
    Thanks in advanced.
    PMR

    Hi ,
    Please find these two BADi's which will be useful to you.
    <b>ME_GUI_PO_CUST</b> and <b>MEGUI_LAYOUT</b>.
    <i>Hope This Info Helps YOU.</i>
    Regards,
    Raghav

  • Lot size calculation for Purchase order

    Hi all,
    I want to purchase Labels which comes in lot qty such as in lot of 100,200 etc.
    For that particular items i want to do mandatory qty lot size in PO when buyers places the purchase order.
    Can anybody tell me How i can map that lot size for the particular item.
    Regards,
    Anant

    Hi,
    You can done it with change Material Master.
    Enter MM02 t-code, enter your material code and select MRP1 view.
    Here maintain Rounding value as 100 in material master.
    After when your create purchase order system put quantity as 100, 200, 300 etc.
    Regards,
    Mahesh R.

  • Purchase order Picks Wrong GL

    Hi Expert,
    Can you guide us, There some 5 purchase order ,out of that  3 purchase order picking wroght GL account but 2 purchase order picking Wrong GL account.
    Where as we have same material for every purchase order including the Valuation class
    So please guide us, why Purchase order picking wrong purchase order. and how can we correct the GL account in purchase order.
    Regards
    Santosh Kumar

    Hi Expert,
    Can you guide us, There some 5 purchase order ,out of that 3 purchase order picking wroght GL account but 2 purchase order picking Wrong GL account.
    Where as we have same material for every purchase order including the Valuation class
    So please guide us, why Purchase order picking wrong purchase order. and how can we correct the GL account in purchase order.
    Regards
    Santosh Kumar
    Santosh,
    Make your question 1st. You have been telling PURCHASE ORDERS and nothing else. Pls know what you want.
    Suraj

  • Purchase Order Fields

    Hi
    I need help in finding Dictionary Table containing Fields:
    I could not find these fields in EKKO and EKPO.
    -ASN Date
    -Acknowledgement Date
    -PO Status (Whether ACK,ASN,Invoice has been rcvd.)
    -Total PO Amount
    Thanks in Advance.
    Sipra Jain

    Hi,
    Actually I want to use the fields as search criteria for finding a purchase order out of many.
    But I'm unable to find these.I just want to know the fields from tables (like ekko,ekpo) so that i can use them in my project.
    Thanks in Advance,
    Sipra

  • HOT TO SET THE OUT PUT MESSAGE FOR PURCHASE ORDER

    As i was saving the Purchase order in Me21n the error message that came up was " NO OUTPUT MESSAGE SET FOR THE PO " HOW  DO I SET THE OUTPUT MESSAGE AND SET THE PO PRINT SETTING KINDLY HELP.

    Hi
    First of all Execute  program RSNAST0F in SA38 .
    Following are some steps for PO message printing
    Maintain Output of Purchase Order
    1. Condition Table
    SPRO &#61664; Material Management-> Purchasing -> Message -> Output Control->Condition Tables->Define Condition Table for Purchase Order
    Select:
    Purchasing Doc. Type,
    Purch. Organization,
    Vendor
    2. Access Sequences
    SPRO -> Material Management-> Purchasing -> Message -> Output Control->Access Sequences->Define Condition Table for Purchase Order
    3. Message Type
    SPRO -> Material Management-> Purchasing -> Message -> Output Control->Message Types->Define Message Type for Purchase Order
    Ex:
    EF---> ZNEU
    Select “ZNEU” and double click on “Mail title and texts” and go to
    EN- New Purchase Order Print Out,
    Select “ZNEU” again and double click on “Processing routines,
    Select “ZNEU” again and double click on “Partner Roles
    4. Message Determination Schemas
    4.1. Message Determination Schemas
    SPRO -> Material Management-> Purchasing -> Message -> Output Control->Message Schema->Define Message Schema for Purchase Order-> Maintain Message Determination Schema
    4.2. Assign Schema to Purchase Order
    SPRO -> Material Management-> Purchasing -> Message -> Output Control->Message Schema->Define Message Schema for Purchase Order-> Assign Schema to Purchase Order
    5. Partner Roles per Message Type
    SPRO -> Material Management-> Purchasing -> Message -> Output Control-> Partner Roles per Message Type ->Define Partner Role for Purchase Order
    6. Condition Record
    Navigation Path: SAP Menu-> Logistics -> Material Management -> Purchasing-> Master data->Messages-> Purchase Order-> MN04-> Create
    ZNEU -> ZNB
    Now you create PO(ME21N) and maintain the text and save it. Go to ME22N and print the PO by giving output type ZNEU).
    Vishal...

  • Purchase order Print out

    Hi
    There is a requirement where in we are updating the price in the PO’s which are already created with the modified prices from Info records through a program.
    The problem is we are not able to get the print out of PO’s once they are updated with the latest prices from Info record even though the out put type is getting triggered.
    This problem does not exist for the newly created Purchase orders.
    The customizing setting for the message type (XIT1) is set as “4 send immediately” for the dispatch time and the storage mode is “3 Print and archive”.
    The client doesn’t want to change these settings.
    Any pointers on how we can get the print out of Purchase orders after they are updated will be highly appreciated.
    Thanks and regards,
    Ramachandra DN

    Hi Rama chandra
                    Try this options
    Txn code OMQN
    'Fine-Tuned Control: Purchase Order'. Then check for condition type eg 'NEU' an entry exists with operation - 2.
    2 - Printout of any changes made to the original document.
    If no entry exists, then create a new entry with operation indicator - 2,
    condition type 'NEU. Then save.
    2)
    Execute this program RSNAST0F in SA38 to do the printing.
    Object key                : Your Purchase Order Number
    Output type               : NEU
    Transmission medium : 1
    Output application      : EF
    Regards,
    Hareesha k

  • Greying out MEPO1211-NETPR in purchase order?

    Hi
    I need to grey out out MEPO1211-NETPR in purchase order when the status is released 'S'?
    I have used BADI  - ME_ACTV_CANCEL_PO - method check activity
    field-symbols:<fs> type any table,
                  <ls> type any,
                  <lr_screen> type screen.
    assign ('(SAPLMEGUI)TC_1211-COLS') to <fs>.
    if sy-subrc is initial.
      loop at <fs> assigning <ls>.
        clear lv_inx.
         assign component 'SCREEN' of structure <ls> to <lr_screen>.
    if <lr_screen>-name = 'MEPO1211-NETPR'.
            <lr_screen>-input = 0.
         endif.
    endif.
    endif.
    BUT still the field is input enabled in the screen
    Kindly suggest how to acheive desired.

    Hi Arun -
    Check the previous post - http://scn.sap.com/thread/3474357
    check the function module - MEPOBADI_FS_ITEM is getting triggered or not. 
    If yes, you can put an implicit enhancement at the end of this function module.
    Create a implit enahcnement at the end of this function module MEPOBADI_FS_ITEM (just before    ENDFUNCTION). Let me know if you need help on implicit enhancemnt.
    1. declare data
        DATA: ,    w_header TYPE mepoheader,
                        w_item   TYPE mepoitem ,
                           w_fieldselection  TYPE mmpur_fs.
       CONSTANTS: c_61       TYPE mmpur_metafield  VALUE '61', 
    2 .   check header data
       IF im_header IS NOT INITIAL.
          CALL METHOD im_header->get_data
            RECEIVING
              re_data = w_header.
        ENDIF.
    Here you can take the document type from w_header
    3. . check if im_item is not inintial. then take the item data
         CALL METHOD im_item->get_data
            RECEIVING
              re_data = w_item.
    Here you can check plant from w_item.
    if your condition match.
    4.    LOOP AT ch_fieldselection INTO  w_fieldselection
                                            WHERE metafield = c_61.
                        w_fieldselection-fieldstatus = '*' .
                    MODIFY ch_fieldselection FROM  w_fieldselection.
                    CLEAR w_fieldselection.
                  ENDLOOP.

  • Creating a Purchase Order, is there any help out there?

    I am creating a purchase order for our sales team that can be utilized on iOS. I have two issues:
    1) Some of our sales will be exempt and will need to be toggled off. How do you go about doing this while not destroying the end total?
    2) Our sales tax varies due to county's jurisdiction. Is there a way to change that once the form is ready to be filled out?
    Thanks Guys
    Below is how my form is being set up, mind you this is an import from excel.

    I don't see a way for you to currently specify that an item is exempt...
    Maybe add another column with check-boxes for the exempt status. However,
    implementing this in the calculation will require a custom-made script.
    As for the sales tax, you can place that in a text field as well and use it
    in your calculation directly. It's even possible to set it up so that a
    selection in a county drop-down will automatically populate the Sales Tax
    field with the correct value.

Maybe you are looking for

  • MSSQL Query/View Single Line Output For Combined Multiple Data Elements - Possible Pivot Table?

    HELLO... I hope you experts out there can help me.  Consider the following (2) Tables in MSSQL: 1. TENDERED --> Primary Key = DATE / DOC_NO / PAYMENT_SEQ_NO DATE DOC_NO PMNT_SEQ_NO PAYCODE_TYPE AMOUNT 2. TENDERED_CR_CARD -->Primary Key = DATE / DOC_N

  • CS6 InDesign install errors

    I have CS5 Illustrator and Photoshop installed, and now I'm trying to install CS6 InDesign.  I get an error message that the installer can't be initialized.  I've ran the Adobe Support Advisor that gave me that message.  I've done all the corrective

  • What's Mobile Me? Forgive stupid question

    What's Mobile Me, and do I need it? Please forgive a stupid question.

  • Playbook - Can't find Download Folder

    Can't locate my Download Folder on my Playbook (looking for e-mail attachments).  It is supposed to be in my File Manager, but don't see it in there!??? Here is what HELP said.. Thanks, Jack Q: Where are email attachments saved? A: Any email attachme

  • Problem with tpz File

    hi all,          i am confused with importing of tpz files to the Repository. (stupid doubt) i have the path of the import directory as : D:\usr\sap\X7A\SYS\global\xi\repository_server\import. but how do i get there and copy the file. regards, raj