How Purchase Order will show Deleted Status?

Hi SRM Guru,
How and by when a PO will show status in 'Deleted'? Will there an deletion is set to mark for deletion?
Many thanks.
Regards,
Kim

Hi
<b>Please go through these links for details -></b>
"PO_DEL_POSSIBLE"  does not permit to delete a PO ! :-(
change status of a created PO
How to get the current PO status programatically ?
change the PO status to cancel
Re: "Delete" button is not working !  :-(
Re: Delete button for PO is disabled in some clients ?  :-(
PO is in archived status
Re: not abe to delete the PO in EBP
Re: status of po
Hope this will definitely help.
Regards
- Atul

Similar Messages

  • Delete or insert item in Sales Order and Purchase Order will update as well

    Hi,
    Is anyone got the program code that when i delete or insert item in Sales Order and the back to back Purchase Order will do the same action.
    Please help.
    Regards,
    Anna

    Hi,
    I guess u can try the following,
    Once the SO is updated, check with a SQL query if there are any target docs for that SO then, if there are any target docs u have to check for the item thats updated and then update ur PO using DI.
    Hope it helps,
    Vasu Natari.

  • Purchase order in 'awaiting approval' status but no approval required

    Hi
    I am using SRM 4.0 SP 13. There is a purchase order which shows that no approval is required in the approval tab, but the overall status is 'awaiting approval'. Please can you advise if this is a Support pack issue? I have checked the workflow WS14000075 which is active.
    Regards
    Rajeev

    Hi
    You would need to check if the workflow has been able to release the PO properly. Only after successful release completion by workflow, PO status gets changed to ordered from awaiting approval. Check the workflow log to see if there are any errors. Use txn-SWI1 or SWI6 to go into workflow log. Also reactive your workflow WS14000075 using txn swdd and try creating new PO.
    Regards,
    Sanjeev

  • SRM 7.0 Purchase Order Response always in status "In process" after confirm

    Hello experts,
    this problem is similar to the thread [SRM-SUS Purchase Order Response always "In Status"; which has been not finally responded.
    My problem exists in an environment without SUS.
    When a buyer confirms a PO response (POR) without any change, the system generates a new PO response with status "In process".  This new POR has also to be confirmed or rejected but the system generates again a new PO response with status "In process".
    So we have a very nice loop for the purchaser without escape!
    We are on SRM 7.0 SP07. The other thread mentioned that SAP will create some OSS notes, but I found nothing about this problem.
    Any ideas?
    Regards
    Joe

    Hi Gurus.
    I want to share my experience with this case.
    We have the same scenario, Confirm PO, the result is PO confirmed, but we receive a response from ECC and this Confirmed PO changes its status to "In Process" / "En Tratamiento".
    The new relevant information is that we added 2 new fields to the item PO, these fields are filled ok and sent to ECC.
    In a first time these new fields were lost due to the response from ECC. To avoid this situation I implemented the BADI BBP_DOC_CHANGE_BADI for BUS2230, and method BBP_SUSPO_CHANGE to copy from the BBP_PDISC (Object BUS2230) rows the values to the new rows in the same table BBP_PDISC (Object BUS2201).
    With this change the new documents are confirmed directly and not changed to "In Process"/ "En tratamiento".
    That was my experience, now I have a question...
    In the correct business process for SAP SRM SUS  when you confirm full a PO...
    * this will be blocked or no?
    * Can be modified the confirmed items?
    * This depends of customizing?

  • TS3297 For my game purchase cannot be success .. After I click on the icon for the purchase they will show me contact I-tunes support for complete the transaction ....for I have already contact AppleCare for assist.... And they told me is the server syste

    For my game purchase cannot be success .. After I click on the icon for the purchase they will show me contact I-tunes support for complete the transaction ....for I have already contact AppleCare for assist.... And they told me is the server system down
    Kindly get back to me ASAP!
    Thanks.

    Jay cole Ong wrote:
    After I click on the icon for the purchase they will show me contact I-tunes support for complete the transaction ....
    To Contact iTunes Support...
    Use this Link  >  Apple  Support  iTunes Store  Contact

  • Purchase Order has approved but Status show as Unapproved

    Dear All Experts,
    I have a Purchase Order need to go throught approval procedure. The Purchase Order has approved by user and add into system and printed out. When second time, open the same Purchase Order, the status show "Unapproved" but the Purchase Order windows header name show Purchase Order [Approved], this make user unable to copy to GRPO. I have try to restore stored procedures in SAP B1, it does not make any changes. The user is using SAP B1 2007A SP0 PL49. Please Advise.

    Hi Angie
    the purchase order once approved has to be added on to the system after approval if u say that u have added the purchase order after it got approved then that seems to be a concern for that u need to contact ur sap partner or if u are a partner then u need to get in touch with sap to resolve the isssue as it could be because of problem with ur database
    but before that please be sure off that u are using the correct way and have sucessfully added the documnt apon approval.
    Regards,
    Manish

  • Purchase Order is not deleted after archive process

    Hi,
    I want to delete completely a specific purchase order from the system so I followed the next steps to do that but is not working.. not sure if I'm doing something wrong.
    Steps:
    1) I marked up the PO as deleted in the ME22 transaction:
    2) In the transaction SARA I followed these steps:
    Step 1: Create variant for Archiving. Give it a name. Enter your PO number. Flag One step procedure. Flag detailed log. Erase flag for test run.
    Step 2: Maintain your start date, you can use Immediate in such a small case.
    Step 3: Maintain spool parameters. Enter your printer and set the values if you want to print immediatly and if you want keep the print. I suggest to hold the spool in the system. This helps you to determine any error.
    Step 4. Execute the variant.
    3) If I go to the transaction ME23N it says that the PO is archived but is there yet. Also, I can see it in the "Docuement Overview". How can I delete this PO completely from the system??
    Thanks for the help!!

    HI Carlos,
    Since you archived PO, it is stored in archive physical drive not in SAP drive.
    when u use me23n, the archived PO is picking from physical drive and it says "Already archived" message.
    I'm sure there will be no table level entries for the archived documents
    Go to SARA transaction - information system--> Archive Explorer - MM_EKKO and execute.
    Check your PO is listed here.
    So if you dont want to see your PO, then you need to De-activate information system
    in SARA-Information System-->Customizing -
    search infrastructure by Object name and use activate/deactivate icon -
    A question i really need to know - Why you want to delete a particular PO, Archival process is not a small thing and usually it takes place as a MASS activity.
    reg,
    bhg

  • Purchase Order Report Showing Delivery Date

    Hello All
    I am looking for a report which will show Purchase orders with delivery date . something like ME2N but it is not showing delivery date.
    Regards
    Yogesh

    Hello Guys
    Thanks for your answers but it seems no body have checked it.
    Vishal : I am looking for a standard report and not table.
    Ranga : In SPRO field delivry date in not there under new scope of list
    Chidanand: Boss ALLES not giving delivery date.
    Please tell me some other way.
    regards
    Yogesh

  • Report for Open purchase orders that contain deleted preqs

    Hi All,
    Is there a way to list purchase orders that may contain purchase reqs that have been deleted after PO creation?
    Cheers,
    Harry

    Hi,
    The PRs are being deleted by other persons, mainly the originator, and by closing off work orders that the PR would be associated with.
    The POs are still active, although quite old.   I am hastening all PO that are active against the vendors to ensure supply of the goods.
    I am seeing quite a large number of POs with deleted/closed PRs.  Thus indicating there is no longer a demand for the items on the po.
    If i could run a weekly report to show POs with deleted PRs. I could liaise with the originators to confirm their requirement before hastening against the vendor.
    Cheers,
    Harry

  • 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

  • Purchase order - error in deleted items

    Hi all,
    I have the following situation: when changing an existent purchase order, if I have a deleted item with an error, the system doesn't allow me to save the purchase order if I don't correct the error in the deleted item.
    I have a requirement for the client to suppress this behaviour.
    Any ideas on this?
    Thanks in advance.
    Best regards,
    Sónia Gonçalves

    Hi,
    First of all, thank you all for your answers.
    I got this from SAP:
    "As per system design, the PO item must be free of errors before you can save it (even if it is deleted). This is to ensure that no error appears suddenly if the PO item is later undeleted. SAP generally
    allows saving only if the entered data is consistent, so that it does not cause unexpected errors later"
    I have a requirement to suppress this behaviour, since the client doesn't understand why they have to correct a deleted item.
    Any ideas on a user-exit ou badi where I could ignore this validation and how?
    Thanks.
    Best regards,
    Sónia Gonçalves

  • SRM-SUS Purchase Order Response always "In Status"

    Hi Gurus,
    When a buyer confirms a PO response without any change, the system generates a new PO response with status "In process". And so, when the buyer views the new PO response, the "Confirm Response" and "Reject Response" buttons are still active and the buyer can still confirm the response. When the buyer confirms the new PO response, the system will again generate a new PO response with status "In process".
    We are on SRM 7.0 SP05. We did not activate the following workflows:
    WS14500001  Auto Transfer of PCO
    WS14500019 Transfer PCO Data to PO
    Would really appreciate any help.
    Regards,
    Kezia

    Hi
    XI Seems to be good as the XML message is getting processed in SRM and is creating a POR Document. Here are the steps for configuring POR:
    1. Define NUmber Ranges
    2. Activate Event Linkages and Start Conditions for WS14500001.(this is predelivered in standard system)
    3. Configurations for Tolerances for qty and date...
    Did you process the POR from PO?
    You need to go to Process Purchase Order Response , searched for PORs and then take action on the PORs in pending statuses.....
    POR functionality is pretty much straightforward feature which works smoothly.....If you are not able to sort it out using this forum, write detaisl to SAP, they can look into your system
    Regards
    Virender Singh

  • Kanban with purchase order : avoid manual change status to full

    Dear guru ,
    i use a kanban with purchase order.
    When I enter status empty (using for example PK13N) the system create purchase order.
    I want to avoid that the users enter status full using PK13N or PKBC .
    The users execute goods receipts against purchase order using MIGO in order that the system trigger status full automatically.
    How can I avoid that users change manual status to full using PK13N or PKBC ?
    Thanks.

    We have this scenario and to solve that we did a development. I heard in the past that even you can configure it on SPRO it doesn't work.
    I made some tests recently but I didn't get any positive result. We did tests entering the kanban id into the inbound delivery and post through vl32n and migo but it doesn't work.
    Regards
    Eduardo Chagas

  • Purchase order item - avoid delete

    Hi Expert,
    I have to make a control to avoid the deletion of an item of purchase order.
    In other word, when the user press the delete button in the item of purchase order, I have to check variable A.
    If A = 'X' --> avoid delete item, and pop for info
    else.
    delete item
    endif.
    How I can make it ? There's a BADI, or an user exit ?
    Tks a lot.

    Hello,
    Please implement the Badi "ME_PROCESS_PO" in that go to
    if_ex_me_process_po_cust~process_item.
    Write the code
      DATA : re_data TYPE mepoitem.
      DATA : mmmfd_preq_no       TYPE mmpur_metafield VALUE 003.  "Banfnummer
      INCLUDE mm_messages_mac. "useful macros for message handling
      CALL METHOD im_item->get_data
        RECEIVING
          re_data = re_data.
      IF re_data-lokez ne space.
        CALL METHOD im_item->invalidate( ).
        mmpur_metafield mmmfd_preq_no.
      mmpur_message_forced 'E' 'ME' '083' text-003 'Deletion not allowed' '' ''.  ENDIF.

  • Want to put music on Dad's Iphone not sure how much stuff will be deleted

    I wanted to put music on my dads Iphone for his birthday, but since it is my itunes and not his, it will "clear" his iphone....now this is his very impoortant work phone and so I do not want to delete all of his emails and calendar and contacts and all of the other stuff like that from his iphone...so exactly how much will itunes delete when it clears his ipone?????????

    if the iPhone is setup to connect to your computer (which is not one he uses), everything will be cleared. in order to put content on his iPhone, you will have to connect it to the computer he has it already setup with. iPhone's can only be connected to 1 iTunes library, and each computer is a different 'library'.

Maybe you are looking for

  • After adjusting the levels in a file the changes don't stay. How do I fix this?

    Hello helpful people, I'm running Photoshop CS5 on an iMac. I started with a scanned tiff that was emailed to me, a black on white ink drawing. I changed it from a tiff to a greyscale image and saved as psd, then converted it to RBG 8bit. When I open

  • Flexunit on a headless mac server

    Has anyone successfully ran flexUnit on a headless mac? im running ant builds via Jenkins, it will build a flex app no problem, however when I try to build the sample flexunit CI app I get the followin error [flexunit] LSOpenURLsWithRole() failed wit

  • How to show up "Photo Tour Bar" in full screen mode under Aperture 2?

    HELLO, Mine is a MBA with Aperture 2. I am unable to show up the photo tour bar in full screen mode> What should I do to get the photo tour bar on the top of my full screen mode? Camera Canon 40D.

  • User Identities being automatically disabled by System

    Greetings, This is a weird one. Had devices failing PEAP authentication because internal user disabled.Checked Administration > Identities > Users and sure enough user was disabled. Re-enabled, but next day same thing. Reviewed configuration logs and

  • Unexpected MRP Forecast

    We have a very peculiar situation within Oracle. Somehow, a statistical forecast was generated for quantity 1 for EVERY sku we have loaded into Oracle. As well, we had just created a user for a new employee. Somehow his name is tied to these records.