BAPI_PO_CHANGE with scheduling

Hai frnds,
  Im using BAPI_PO_CHANGE for changing the quantity of the existing item and need to create an new item also. For this im using scheduling table(poschedule),where one item has two scheduling line.
Existing details
Eg: POHEADER:    0210000001
    POITEM:
      10 -> 400(quantity)
    POSCHEDULE:
      10 -> 1(1st sched) -> 100(quantity)
      10 -> 2(2nd sched) -> 300(quantity)
After modification
Eg: POHEADER:    0210000001
    POITEM:
     10 -> 60(quantity)
     20 -> 340(quantity)
    POSCHEDULE:
     10 -> 1(1st sched) -> 60(quantity)
     10 -> 2(2nd sched) -> 0(quantity)
     20 -> 1(1st sched) -> 40(quantity)
     20 -> 2(2nd sched) -> 300(quantity)
Can anyone help me to solve this problem??? wat are the fields to be considered in POITEM,POSCHEDULE?
Suganya Jayabalan.

Hai Thomas,
  this is the code:
REPORT  zfi_upd_import_process NO STANDARD PAGE HEADING
                                 MESSAGE-ID z6 .
TABLES: zmmpoamend,ekko, ekpo.
DATA:t_zmmpo_amend_tab LIKE zmmpoamend OCCURS 0 WITH HEADER LINE.
DATA:t_zmmpo_amend_tab1 LIKE zmmpoamend OCCURS 0 WITH HEADER LINE.
DATA:v_bstmg     LIKE bapimepoitem-quantity,
     v_ebelp     LIKE bapimepoitem-po_item,
     v_belnr1    LIKE bkpf-belnr,
     v_awkey     LIKE bkpf-awkey,
     v_orderunit LIKE ekpo-meins,
     v_currency  LIKE tcurc-waers,
     v_ebeln     LIKE ekko-ebeln,
     v_payterm   LIKE ekko-zterm,
     v_zfbdt     LIKE bseg-zfbdt,
     v_flag(1)   TYPE c,
     v_flgbdc(1) TYPE c.
DATA: wa_bapiquantity1 like eket-menge,
      wa_bapiquanfin1 like eket-menge,
      wa_bapiquantot like eket-menge,
      wa_bapiquantity2 like eket-menge,
      wa_bapiquanfin2 like eket-menge.
DATA: BEGIN OF t_belnr_tab OCCURS 0,
        belnr LIKE bkpf-belnr,
        gjahr LIKE bkpf-gjahr,
      END OF t_belnr_tab.
DATA: BEGIN OF t_ret_tab OCCURS 0.
        INCLUDE STRUCTURE bapiret2.
DATA: END OF t_ret_tab.
FOR PO AMENDMENT POSTING ****************
DATA:BEGIN OF t_bapimepocond_tab OCCURS 0.
        INCLUDE STRUCTURE bapimepocond.
DATA:END OF t_bapimepocond_tab.
DATA:BEGIN OF t_bapimepoitem_tab OCCURS 0.
        INCLUDE STRUCTURE bapimepoitem.
DATA:END OF t_bapimepoitem_tab.
DATA: t_bapimepoitem_tab1 LIKE t_bapimepoitem_tab OCCURS 0 WITH HEADER
LINE
DATA:BEGIN OF t_bapimepoitemdet_tab OCCURS 0.
        INCLUDE STRUCTURE bapiekpo.
DATA:END OF t_bapimepoitemdet_tab.
DATA:BEGIN OF t_bapieket_tab OCCURS 0.
        INCLUDE STRUCTURE bapieket.
DATA:END OF t_bapieket_tab.
DATA:BEGIN OF t_bapiposchedule OCCURS 0.
        INCLUDE STRUCTURE BAPIMEPOSCHEDULE.
DATA:END OF t_bapiposchedule.
data: w_no type i,
      w_no1 type i,
      w_idx type i.
DATA: w_ebelp like ekpo-ebelp.
DATA:BEGIN OF t_bapimepoaccount_tab OCCURS 0.
        INCLUDE STRUCTURE bapimepoaccount.
DATA:END OF t_bapimepoaccount_tab.
DATA:BEGIN OF t_bapimepoaccountx_tab OCCURS 0.
        INCLUDE STRUCTURE bapimepoaccountx.
DATA:END OF t_bapimepoaccountx_tab.
DATA:BEGIN OF t_bapimepoaccountdet_tab OCCURS 0.
        INCLUDE STRUCTURE bapiekkn.
DATA:END OF t_bapimepoaccountdet_tab.
DATA:BEGIN OF t_bapimepoitemx_tab OCCURS 0.
        INCLUDE STRUCTURE bapimepoitemx.
DATA:END OF t_bapimepoitemx_tab.
DATA:wa_bapimepoitem LIKE LINE OF t_bapimepoitem_tab.
data: begin of t_bapiposchedulex occurs 0.
        include structure BAPIMEPOSCHEDULX.
data: end of t_bapiposchedulex.
END OF FOR PO AMENDMENT POSTING **********
SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
PARAMETERS: p_poamd RADIOBUTTON GROUP rad1,
           p_mirofs RADIOBUTTON GROUP rad1,
           p_mirocd RADIOBUTTON GROUP rad1,
           p_mirofr RADIOBUTTON GROUP rad1,
           p_j1iex RADIOBUTTON GROUP rad1.
SELECT-OPTIONS:s_zzboe FOR zmmpoamend-zzboe NO INTERVALS NO-EXTENSION
                           OBLIGATORY.
SELECTION-SCREEN END OF BLOCK b1.
IF p_poamd = 'X'.
begin of internal table processing for calling BAPI's*******
  SELECT * FROM zmmpoamend INTO TABLE t_zmmpo_amend_tab
     WHERE zzboe IN s_zzboe AND
           zzpostat = ' '.
  IF sy-subrc <> '0'.
    MESSAGE 'No PO found which has to be updated.' TYPE 'E'.
  ENDIF.
begin of PO Amendment****************
  LOOP AT t_zmmpo_amend_tab .
    t_zmmpo_amend_tab-waers = 'INR'.
    t_zmmpo_amend_tab1 = t_zmmpo_amend_tab.
    t_zmmpo_amend_tab1-zzpostat = 'X'.
    APPEND t_zmmpo_amend_tab1.
    IF t_zmmpo_amend_tab-zzwrbtrvcd NE '0'.
      CLEAR t_bapimepocond_tab.
      t_bapimepocond_tab-itm_number = t_zmmpo_amend_tab-ebelp.
      t_bapimepocond_tab-cond_value = t_zmmpo_amend_tab-zzwrbtrvcd.
      t_bapimepocond_tab-cond_type = 'ZVCD'.
      t_bapimepocond_tab-currency = t_zmmpo_amend_tab-waers.
      t_bapimepocond_tab-change_id = 'I'.
      APPEND t_bapimepocond_tab.
    ENDIF.
    IF t_zmmpo_amend_tab-zzwrbtrvnv NE '0'.
      CLEAR t_bapimepocond_tab.
      t_bapimepocond_tab-itm_number = t_zmmpo_amend_tab-ebelp.
      t_bapimepocond_tab-cond_value = t_zmmpo_amend_tab-zzwrbtrvnv.
      t_bapimepocond_tab-cond_type = 'ZVNV'.
      t_bapimepocond_tab-currency = t_zmmpo_amend_tab-waers.
      t_bapimepocond_tab-change_id = 'I'.
      APPEND t_bapimepocond_tab.
    ENDIF.
    IF t_zmmpo_amend_tab-zzwrbtrccd NE '0'.
      CLEAR t_bapimepocond_tab.
      t_bapimepocond_tab-itm_number = t_zmmpo_amend_tab-ebelp.
      t_bapimepocond_tab-cond_value = t_zmmpo_amend_tab-zzwrbtrccd.
      t_bapimepocond_tab-cond_type = 'ZCCD'.
      t_bapimepocond_tab-currency = t_zmmpo_amend_tab-waers.
      t_bapimepocond_tab-change_id = 'I'.
      APPEND t_bapimepocond_tab.
    ENDIF.
    IF t_zmmpo_amend_tab-zzwrbtrvcv NE '0'.
      CLEAR t_bapimepocond_tab.
      t_bapimepocond_tab-itm_number = t_zmmpo_amend_tab-ebelp.
      t_bapimepocond_tab-cond_value = t_zmmpo_amend_tab-zzwrbtrvcv.
      t_bapimepocond_tab-cond_type = 'ZVCV'.
      t_bapimepocond_tab-currency = t_zmmpo_amend_tab-waers.
      t_bapimepocond_tab-change_id = 'I'.
      APPEND t_bapimepocond_tab.
    ENDIF.
    IF t_zmmpo_amend_tab-zzwrbtrvce NE '0'.
      CLEAR t_bapimepocond_tab.
      t_bapimepocond_tab-itm_number = t_zmmpo_amend_tab-ebelp.
      t_bapimepocond_tab-cond_value = t_zmmpo_amend_tab-zzwrbtrvce.
      t_bapimepocond_tab-cond_type = 'ZVCE'.
      t_bapimepocond_tab-currency = t_zmmpo_amend_tab-waers.
      t_bapimepocond_tab-change_id = 'I'.
      APPEND t_bapimepocond_tab.
    ENDIF.
    IF t_zmmpo_amend_tab-zzwrbtrvfi NE '0'.
      CLEAR t_bapimepocond_tab.
      t_bapimepocond_tab-itm_number = t_zmmpo_amend_tab-ebelp.
      t_bapimepocond_tab-cond_value = t_zmmpo_amend_tab-zzwrbtrvfi.
      t_bapimepocond_tab-cond_type = 'ZVFI'.
      t_bapimepocond_tab-currency = t_zmmpo_amend_tab-waers.
      t_bapimepocond_tab-change_id = 'I'.
      APPEND t_bapimepocond_tab.
    ENDIF.
    IF t_zmmpo_amend_tab-zzwrbtrvad NE '0'.
      CLEAR t_bapimepocond_tab.
      t_bapimepocond_tab-itm_number = t_zmmpo_amend_tab-ebelp.
      t_bapimepocond_tab-cond_value = t_zmmpo_amend_tab-zzwrbtrvad.
      t_bapimepocond_tab-cond_type = 'ZVAD'.
      t_bapimepocond_tab-currency = t_zmmpo_amend_tab-waers.
      t_bapimepocond_tab-change_id = 'I'.
      APPEND t_bapimepocond_tab.
    ENDIF.
    IF t_zmmpo_amend_tab-zzwrbtrvac NE '0'.
ZVAC added..
      CLEAR t_bapimepocond_tab.
      t_bapimepocond_tab-itm_number = t_zmmpo_amend_tab-ebelp.
      t_bapimepocond_tab-cond_value = t_zmmpo_amend_tab-zzwrbtrvac.
      t_bapimepocond_tab-cond_type = 'ZVAC'.
      t_bapimepocond_tab-currency = t_zmmpo_amend_tab-waers.
      t_bapimepocond_tab-change_id = 'I'.
      APPEND t_bapimepocond_tab.
    ENDIF.
    IF t_zmmpo_amend_tab-zzwrbtrvae NE '0'.
ZVAE added..
      CLEAR t_bapimepocond_tab.
      t_bapimepocond_tab-itm_number = t_zmmpo_amend_tab-ebelp.
      t_bapimepocond_tab-cond_value = t_zmmpo_amend_tab-zzwrbtrvae.
      t_bapimepocond_tab-cond_type = 'ZVAE'.
      t_bapimepocond_tab-currency = t_zmmpo_amend_tab-waers.
      t_bapimepocond_tab-change_id = 'I'.
      APPEND t_bapimepocond_tab.
    ENDIF.
    IF t_zmmpo_amend_tab-zzwrbtrmis NE '0'.
ZMIS(Miscellaenous charges) added..
      CLEAR t_bapimepocond_tab.
      t_bapimepocond_tab-itm_number = t_zmmpo_amend_tab-ebelp.
      t_bapimepocond_tab-cond_value = t_zmmpo_amend_tab-zzwrbtrmis.
      t_bapimepocond_tab-cond_type = 'ZMIS'.
      t_bapimepocond_tab-currency = t_zmmpo_amend_tab-waers.
      t_bapimepocond_tab-change_id = 'I'.
      APPEND t_bapimepocond_tab.
    ENDIF.
    IF t_zmmpo_amend_tab-zzinsper NE '0'.
insurance
      CLEAR t_bapimepocond_tab.
      t_bapimepocond_tab-itm_number = t_zmmpo_amend_tab-ebelp.
      t_bapimepocond_tab-cond_value = t_zmmpo_amend_tab-zzinsper.
      t_bapimepocond_tab-cond_type = 'ZPIN'.
      t_bapimepocond_tab-currency = '%'. "zmmpo_amend_tab-waers.
      t_bapimepocond_tab-change_id = 'I'.
      APPEND t_bapimepocond_tab.
    ENDIF.
    IF t_zmmpo_amend_tab-zzclsper NE '0'.
*clearing charges.
      CLEAR t_bapimepocond_tab.
      t_bapimepocond_tab-itm_number = t_zmmpo_amend_tab-ebelp.
      t_bapimepocond_tab-cond_value = t_zmmpo_amend_tab-zzclsper.
      t_bapimepocond_tab-cond_type = 'ZPCL'.
      t_bapimepocond_tab-currency = '%'. "zmmpo_amend_tab-waers.
      t_bapimepocond_tab-change_id = 'I'.
      APPEND t_bapimepocond_tab.
    ENDIF.
    v_bstmg = t_zmmpo_amend_tab1-menge + v_bstmg.
    AT END OF ebelp.
     t_bapimepoitem_tab-po_number = t_zmmpo_amend_tab1-ebeln .
      t_bapimepoitem_tab-po_item = t_zmmpo_amend_tab1-ebelp .
      t_bapimepoitem_tab-quantity = v_bstmg.
      APPEND t_bapimepoitem_tab.
      CLEAR v_bstmg.
    ENDAT.
    AT END OF  ebeln.
     L_EBELN =
      CALL FUNCTION 'BAPI_PO_GETDETAIL'
        EXPORTING
          purchaseorder                    = t_zmmpo_amend_tab-ebeln
         items                            = 'X'
         account_assignment               = 'X'
         SCHEDULES                        = 'X'
       TABLES
         po_items                         = t_bapimepoitemdet_tab
         po_item_account_assignment       = t_bapimepoaccountdet_tab
         PO_ITEM_SCHEDULES                = t_bapieket_tab.
      CLEAR v_ebelp.
      v_ebelp = t_bapimepoitemdet_tab-po_item.
      LOOP AT t_bapimepoitem_tab.
        v_bstmg = t_bapimepoitem_tab-quantity.
        LOOP AT t_bapimepoitemdet_tab WHERE
                          po_number = t_zmmpo_amend_tab-ebeln AND
                          po_item = t_bapimepoitem_tab-po_item.
          IF t_bapimepoitemdet_tab-quantity =
          t_bapimepoitem_tab-quantity.
           MOVE-CORRESPONDING t_bapimepoitemdet_tab TO wa_bapimepoitem.
            wa_bapimepoitem-gr_basediv = ' '.
            APPEND wa_bapimepoitem TO t_bapimepoitem_tab1.
            t_bapimepoitemx_tab-po_item = wa_bapimepoitem-po_item.
            t_bapimepoitemx_tab-gr_basediv = 'X'.
            APPEND t_bapimepoitemx_tab.
          ELSE.
            v_ebelp = v_ebelp + '10'.
            MOVE-CORRESPONDING t_bapimepoitemdet_tab TO wa_bapimepoitem.
            wa_bapimepoitem-quantity = t_bapimepoitemdet_tab-quantity -
                                       t_bapimepoitem_tab-quantity.
            wa_bapimepoitem-po_item = v_ebelp .
            APPEND wa_bapimepoitem TO t_bapimepoitem_tab1.
            LOOP AT t_bapimepoaccountdet_tab
              WHERE po_item = t_bapimepoitem_tab-po_item.
              MOVE-CORRESPONDING t_bapimepoaccountdet_tab TO
                                t_bapimepoaccount_tab.
              t_bapimepoaccount_tab-gl_account =
                t_bapimepoaccountdet_tab-g_l_acct.
              t_bapimepoaccount_tab-itm_number =
                t_bapimepoaccountdet_tab-sdoc_item.
              t_bapimepoaccount_tab-quantity = wa_bapimepoitem-quantity.
              t_bapimepoaccount_tab-po_item = v_ebelp.
              t_bapimepoaccountx_tab-po_item = v_ebelp.
              t_bapimepoaccountx_tab-quantity = 'X'.
              t_bapimepoaccountx_tab-creat_date = 'X'.
              t_bapimepoaccountx_tab-quantity = 'X'.
              t_bapimepoaccountx_tab-gl_account = 'X'.
              t_bapimepoaccountx_tab-bus_area = 'X'.
              t_bapimepoaccountx_tab-costcenter = 'X'.
              t_bapimepoaccountx_tab-sd_doc = 'X'.
              t_bapimepoaccountx_tab-itm_number = 'X'.
              t_bapimepoaccountx_tab-co_area = 'X'.
              t_bapimepoaccountx_tab-part_acct = 'X'.
              APPEND  t_bapimepoaccount_tab.
              APPEND  t_bapimepoaccountx_tab.
            ENDLOOP.
            t_bapimepoitemx_tab-po_item = wa_bapimepoitem-po_item.
            t_bapimepoitemx_tab-quantity = 'X'.
            t_bapimepoitemx_tab-stge_loc = 'X'.
            t_bapimepoitemx_tab-preq_no = 'X'.
            t_bapimepoitemx_tab-preq_item = 'X'.
            t_bapimepoitemx_tab-material = 'X'.
            t_bapimepoitemx_tab-po_unit = 'X'.
            t_bapimepoitemx_tab-plant = 'X'.
            APPEND t_bapimepoitemx_tab.
            MOVE-CORRESPONDING t_bapimepoitemdet_tab TO wa_bapimepoitem.
            wa_bapimepoitem-quantity = v_bstmg.
            wa_bapimepoitem-gr_basediv = ' '.
            APPEND wa_bapimepoitem TO t_bapimepoitem_tab1.
            t_bapimepoitemx_tab-po_item = wa_bapimepoitem-po_item.
           t_bapimepoitemx_tab-quantity = 'X'.
           t_bapimepoitemx_tab-gr_basediv = 'X'.
            APPEND t_bapimepoitemx_tab.
*********this is wer new coding starts*****************************
*inserted for delivery scheduling foe PO
          loop at t_bapieket_tab
                  where po_item = t_bapimepoitemdet_tab-po_item.
            w_idx = sy-tabix.
          IF t_bapieket_tab-SERIAL_NO = '0001'.
           IF t_bapimepoitem_tab-quantity > t_bapieket_tab-quantity or
              t_bapimepoitem_tab-quantity = t_bapieket_tab-quantity.
             wa_bapiquantity1 = t_bapieket_tab-quantity.
           ELSEIF t_bapimepoitem_tab-quantity < t_bapieket_tab-quantity.
             wa_bapiquantity1 = t_bapimepoitem_tab-quantity.
           ENDIF.
             wa_bapiquanfin1 = t_bapieket_tab-quantity - wa_bapiquantity1.
             t_bapieket_tab-QUANTITY = wa_bapiquantity1.
             modify t_bapieket_tab index w_idx transporting quantity.
              t_bapieket_tab-po_item = v_ebelp.
              t_bapieket_tab-quantity = wa_bapiquanfin1.
              append t_bapieket_tab.
          ELSE.
             IF t_bapimepoitem_tab-quantity > t_bapieket_tab-quantity.
              wa_bapiquantity2 = t_bapimepoitem_tab-quantity - wa_bapiquantity1.
             ELSEIF t_bapimepoitem_tab-quantity < t_bapieket_tab-quantity or
                    t_bapimepoitem_tab-quantity = t_bapieket_tab-quantity.
              wa_bapiquantity2 = 0.
             ENDIF.
             wa_bapiquanfin2 = t_bapieket_tab-quantity - abs( wa_bapiquantity2 ).
             t_bapieket_tab-QUANTITY = abs( wa_bapiquantity2 ).
             modify t_bapieket_tab index w_idx transporting quantity.
              t_bapieket_tab-po_item = v_ebelp.
              t_bapieket_tab-quantity = wa_bapiquanfin2.
              append t_bapieket_tab.
          ENDIF.
          endloop.
          Sort t_bapieket_tab by po_item.
          sort t_bapimepoitem_tab1 by po_item.
          sort t_bapimepoitemx_tab by po_item.
          loop at t_bapieket_tab.
            move: t_bapieket_tab-po_item to t_bapiposchedule-po_item,
                  t_bapieket_tab-serial_no to t_bapiposchedule-sched_line,
                  t_bapieket_tab-quantity to t_bapiposchedule-quantity,
                  t_bapieket_tab-preq_no to t_bapiposchedule-preq_no,
                  t_bapieket_tab-preq_item to t_bapiposchedule-preq_item.
            if  t_bapieket_tab-quantity = 0.
             t_bapiposchedule-delete_ind = 'X'.
            endif.
            append t_bapiposchedule.
            move: t_bapieket_tab-po_item to t_bapiposchedulex-po_item,
                  t_bapieket_tab-serial_no to t_bapiposchedulex-sched_line.
            t_bapiposchedulex-po_itemx = 'X'.
            t_bapiposchedulex-sched_linex = 'X'.
            if  t_bapieket_tab-quantity = 0.
             t_bapiposchedulex-delete_ind = 'X'.
            elseif  t_bapieket_tab-quantity <> 0.
             t_bapiposchedulex-quantity = 'X'.
            endif.
            clear: w_ebelp.
            select single ebelp from ekpo
                   into w_ebelp
                   where ebeln = t_zmmpo_amend_tab-ebeln and
                         ebelp = t_bapieket_tab-po_item.
            if w_ebelp is initial.
             t_bapiposchedulex-preq_no = 'X'.
             t_bapiposchedulex-preq_item = 'X'.
            endif.
            append t_bapiposchedulex.
            clear: t_bapiposchedulex, t_bapiposchedule.
           endloop.
          ENDIF.
        ENDLOOP.
***********end of new insertion**********************************************
        CLEAR t_bapimepoitemdet_tab.
        CLEAR v_bstmg.
      ENDLOOP.
      CALL FUNCTION 'BAPI_PO_CHANGE'
        EXPORTING
          purchaseorder                = t_zmmpo_amend_tab-ebeln
       TABLES
         return                       = t_ret_tab
         poitem                       = t_bapimepoitem_tab1
         poitemx                      = t_bapimepoitemx_tab
*****************inserted by suganya-2006/06/27*************************
         POSCHEDULE                   = t_bapiposchedule
         POSCHEDULEX                  = t_bapiposchedulex
*****************end of insertion-suganya-2006/06/27********************
         poaccount                    =  t_bapimepoaccount_tab
         poaccountx                   =  t_bapimepoaccountx_tab
         pocond                       = t_bapimepocond_tab
      CLEAR v_flag.
      LOOP AT t_ret_tab.
        IF t_ret_tab-type = 'E'.
          v_flag = 'X'.
          WRITE:/2 t_zmmpo_amend_tab-ebeln,
               15 t_ret_tab-type,
               25 t_ret_tab-message.
        ENDIF.
        AT LAST.
          IF v_flag <> 'X'.
            UPDATE zmmpoamend FROM TABLE t_zmmpo_amend_tab1.
            CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
              EXPORTING
                wait = 'X'.
            WRITE:/2 'PO ',5 t_zmmpo_amend_tab-ebeln,
                           16 ' changed succesfully'.
          ENDIF.
        ENDAT.
      ENDLOOP.
      CLEAR t_ret_tab.
      REFRESH t_ret_tab.
      CLEAR t_bapimepocond_tab.
      REFRESH t_bapimepocond_tab.
      CLEAR t_zmmpo_amend_tab1.
      REFRESH t_zmmpo_amend_tab1.
      CLEAR t_bapimepoitem_tab.
      REFRESH t_bapimepoitem_tab.
      CLEAR t_bapimepoitemdet_tab.
      REFRESH t_bapimepoitemdet_tab.
      CLEAR t_bapimepoitem_tab1.
      REFRESH t_bapimepoitem_tab1.
      CLEAR t_bapimepoitemx_tab.
      REFRESH t_bapimepoitemx_tab.
      CLEAR t_bapimepoaccount_tab.
      REFRESH t_bapimepoaccount_tab.
      CLEAR t_bapimepoaccountdet_tab.
      REFRESH t_bapimepoaccountdet_tab.
      CLEAR t_bapimepoaccountx_tab.
      REFRESH t_bapimepoaccountx_tab.
    ENDAT.
  ENDLOOP.
ENDIF.
End of PO Amendment****************
Regrads,
Suganya Jayabalan

Similar Messages

  • Error while import PAR with schedule task

    Hi everybody
    I've the following error while import a new PAR with schedule task in Portal NW04s
    Inner Stack is:
    Unable to lock the local configuration to run import "import_it.tsf.pld.cercapersone.updateadgruppofs.st.prjconfig_config_fwk_service_4692550,4692550_(ready)".
    System error is "LockConfigException: Configuration framework system error: "configuration-lock-service overloaded: cannot acquire central-lock file for config://local"".
    Inner Stack is:
    LockConfigException: Configuration framework system error: "configuration-lock-service overloaded: cannot acquire central-lock file for config://local"
    at com.sapportals.config.fwk.data.ConfigLockManager.lockWithDependent(ConfigLockManager.java:507)
    thanks in advance

    Hi Ram,
    I've encountered the problem only on productive instance with offline deployment (Scheduler Tasks reinitialize CRT). Before a restart I have to make sure it works.
    thanks for your help!
    Gennaro

  • MRP Run with Scheduling Agreement

    Hi All,
                Can anyone explain the the Scheduling Agreements, we are running the MRP with schedule lines generated.I want to know the complete cycle with the T-codes in sequence they are executed.My requirement is business people need a demo of the Scheduling Agreement,type LP,LPA how they work and difference between LP and LPA.They run the MRP everyday.
    Thanks,
    Kris
    Edited by: Csaba Szommer on Sep 19, 2011 12:52 PM

    Hi,
    The basic difference between LP and LPA  is the way that the schedules are communicated to the vendor.
    for more clarity please refer the blow links.
    LP and LPA in scheduling agreement?????
    Difference between LP and LPA scheduling agreements
    http://it.toolbox.com/wiki/index.php/Scheduling_Agreement
    Thanks.

  • Err with scheduling an abap program using open dataset

    issue: have an abap program which uses "open dataset ... for input ..." to read the file. 
    - with manual ly running it, receive the following message "dataset_not_open".  
    - with scheduling it, receive same message
    attempting to run an abap program as part of a process chain (ie scheduling a background job) in BI.
    the abap performs the following fxns:
    1) read a file on the server
    2) removes delimiter, renames it
    3) rewrites the file onto the server
    initially used ws_upload for reading and ws_download for writing the file. 
    - both fxns worked fine if it is run manually --> but failed as a  background (part of process chain)
    - note 7925 states can't use ws_upload, download for background jobs
    -so switched to "open dataset"
    Any suggestions as to why the "open dataset" does not work is greatly appreciated it.
    B.A.

    Thank you for all responses. here is more info about the err message:
    sy-subrc = 8
    'invalid argument'
    I looked up the invalid argument in note 99155 --> due to "The destination file is no longer available during repeated file access. "   So, the following steps were taken:
    - file was regenerated and
    - file was placed on the server to be read
    have the following code:
    OPEN DATASET FILENAME FOR OUTPUT IN TEXT MODE encoding default
                          MESSAGE D_MSG_TEXT.
    also have tried the following:
       OPEN DATASET d1 for input in text mode encoding default.
       open dataset d1 for output in text mode encoding NON-UNICODE..
       open dataset d1 for output in text mode  encoding utf-8.
    none had worked.  system --> status shows no unicode.
    THanks again for any suggestions.

  • Stock tranport order with scheduling agreement

    Hi All
    i am trying to do Stock transport order with Scheduling agreement within company between two plants like 1) 2008 2) 2009
    2008 :--- supplying plant
    2009:---- recieving plant
    maintain same material in both plants & created Scheduling agreement with document as LPU. i would like to get 1000 qty material every month so trying to run MRP for same material so where i can release my STO from receiving plant (2009) & send STO order to plant 2008.  while running MD03 getting error as :
    for  material ( 1008 ) not maintained automatic MRP
    please tell me what do next step to solve error
    thanks n advance

    Did you maintain the MRP data in the material master for this mateiral and special procurement key needs to be maintained for this mateiral in MRP 2 view (from plant)

  • Problem with scheduling planned orders in MRP

    There is a problem with scheduling planned orders in MRP. SFG is assigned to the BOM of FG. No inhouse production time maintained in the material master of SFG & FG. routing maintained for both . In OPU5 scheduling & capacity reuiremnts tickmarked for detailed scheduling. Scheduling level - via detaied scheduling. Scheduling type - backward. Adjust basic dates , adjust dep. req. to order start set. In MD02 , scheduling is via ' lead time scheduling'.
    My problem is the start date & time & finish date & time is same for planned orders of FG & SFG in the detailed scheduling tab of the planned orders. (Duration is same because of same capacity requirements on the same work centre. But how is the finish date same for both SFG & FG?)
    (Capacity requirements are being generated.)
    What could be the problem ?

    Dear,
    By scheduling the routing and maintain lot size dependent time in material is best practice and result of scheduling will be consistent.
    If you want SFG before FG you need to define lead time offset in BOM or need to maintain the floats before production.
    Hope clear to you.
    Regards,
    R.Brahmankar

  • What is setps to crete the Sub contracting with Scheduling agreement .

    Hi All,
    what is setps to crete the Sub contracting with Scheduling agreement and up to migo
    Thanks
    HAPPY

    hi
    firstly set the SPRO> MM>Purchasing>set up Subcontractor order>assigning plants to the delivery documet LB
    check following in system
    1. Shipping point created properly
    2. Shipping point has been assigned to the appropriate plant.
    3. Maintain shipping conditions in customer master
    4. Maintain loading group in material master
    5. Assignment of customer to vendor master
    then try following process
    1. Create a subcontracting Purchase Order (ME21N)
    u2022Click on u201CMaterial Datau201D tab under u201CItem detailsu201D and then click on u201CComponentsu201D to view the components / make changes.
    u2022Account Assignment and Item Category are usually blank in a subcontracting PO.
    2. Delivery of components to subcontracting vendor (ME2O)
    u2022Enter selection parameters like vendor and plant and click on Execute.
    u2022Select the desired line, click on Create Delivery and a delivery will be created.
    3. Post Goods Issue (VL02N)
    u2022The movement type is usually 541.
    4. Post Goods Receipt (MIGO)
    5. Logistics Invoice Verification (MIRO)
    *check out the doc i given in previous reply it is for SUBCONTRACT with SA *
    regards
    kunal

  • Third party order processing with Scheduling agreements

    Gurus,
    I have a situation here, i am working with a automobile industry and customer sends us EDI 830's (FSD and JIT schedules). we are using scheduling agreements (Doc type - LZ) to process those schedules. I have couple of parts that we dont manufacture and we ask our vendors to ship it direct to customer. i am trying to set up a third party order processing for this sceanario but system is giving me message that i cant use scheduling agreements. i tested with sales order and it worked fine with that. Is there any way to figure out solution with scheduling agreements. Any help will be appriciated.
    Aman

    Hi Aman,
    Scheduling agreements with delivery schedules are not supporte in third-party order processing.
    Baskar

  • Data Tracking with Scheduled Webis

    Using XI R3
    Is this a true statement:  "Data tracking will not work with scheduled webi documents or webi documents in scheduled publications because the scheduling process does not 'save' a document that it can then use as a reference for the next  iteration"?
    If I  refresh the documents manually daily with tracking on and save them, then schedule the publication after that with the  'refresh on open' property turned off in the publication, that seems to be the only way to accomplish it.
    My publication, by the way, produces pdf versions of the webis distributed vai email.
    This requirement to manually run the webi documents every day really defeats the whole advantage of scheduling.

    Hi Stephen.
    Lets understand why data tracking requires a "save report".
    When data tracking is enabled. current version of report output is compared with immediate previous version of report output. Also data tracking requires report to run and saved as HTML format. It does not work in PDF format.
    In case of scheduled report, it will not work as report instance is not saved.  However if you enable "Automatic Data Tracking" it seems to be possible.
    I would suggest reading "Data tracking modes" Part from webi user guide. You shall get all your ans.
    --Kuldeep

  • STO with scheduling agreement, between different plants, different co.codes

    Hi All,
    For STO with scheduling agreement, between different plants under different company codes, please let me know the configuration and order flow process
    Regards,
    kumar

    Hi,
    When you create a stock transport scheduling agreement, you can schedule the exact delivery dates for a stock transfer. Proceed as follows:
    From the Purchasing menu, choose Outline agreement -> Scheduling agreement -> Create trnspt sch.agm. ME37
    Fill out the initial screen. In the field Supplying plant enter the plant issuing the material. The agreement type LU is defined in the standard system. The item category must be U.
    When you press ENTER, the details screen for the header data is displayed.
    Enter the validity period and check the other entries on this screen, if necessary.
    Enter the individual items in the item overview screen. Enter a receiving plant for each item in the Plant field.
    Save the scheduling agreement.
    Enter delivery schedules for the scheduling agreement with the function Outline agreement ->Scheduling agreement -> Follow-on functions -> Delivery schedule.
    For configurations
    Go into SPRO
    Menu path is
    IMG -> MM -> Purchasing -> Scheduling agreement -> Set up stock transfer scheduling agreement
    A) Define shipping data for plants
    B) Create and define checking rule
    C) Assign delivery type and checking rule
    D) Assign Document type
    Hope it helps.

  • Trouble running jobs with scheduler

    Hello,
    We have trouble running jobs with scheduler since we upgrade DS4 from 14.0.1.142 to 14.0.2.322. It works fine for several hours and then randomly jobs are not started. There is no error in the log.  In AL_RWJobLauncherLog.txt file,  there are no "RWJL_EXIT called" in that case :
    02_28_2012 09:30:00     CRWJobLauncherApp::InitInstance called.
    +02_28_2012 09:30:03     +
    02_28_2012 09:30:33     *** RWJL_EXIT called.
    02_28_2012 10:00:00     CRWJobLauncherApp::InitInstance called.
    02_28_2012 10:30:00     CRWJobLauncherApp::InitInstance called.
    02_28_2012 11:00:00     CRWJobLauncherApp::InitInstance called.
    02_28_2012 11:30:00     CRWJobLauncherApp::InitInstance called.
    +02_28_2012 11:30:03     +
    02_28_2012 11:30:33     *** RWJL_EXIT called.
    Sever_eventlog file shows that job is not started. Whole server has to be restarted to get it to work again (restarting DI_JOBSERVICE is not enough). Could you help please ?
    Regards
    Annie

    Hi Annie,
    Mmmhhh that doesn't make much sense to me, except if you have problems with the repository:
    1) Your JobServer or JobLauncher has problems executing jobs
    => reads the repository to get job information
    2) Your Management Console (independant from the JobServer - but on same machine) has problems
    => Is connected to the repository to show job status, adapters etc.
    3) The Tomcat which is hosting the Management Console is OK
    => No connection to the repository of DS.
    Do you have any network or database problems? Can you put the database on the same server?
    I could be wrong of course...just the only thing that comes to mind..
    Regards
    Norbert
    P.S:
    What about compressing your repository and/or
    1395641 - Will truncating the AL_HISTORY and AL_STATISTICS Table compromise the referential integrity of the repository?
    There are half a dozen KBAs about these tables..
    Edited by: Norbert Klein on Mar 3, 2012 10:37 AM

  • Problem Fixed! Print Apps with Scheduled Delivery continuing to print

    Some Scheduled Delivery Print Apps may have continued to print once selected as a Print Now function on an Officejet 6500, 7500, and 8500, Photosmart D110 and B210.  This has been solved as of June 23, 2011. 
    See the Managing Scheduled Delivery Apps page for setting up a new Print App with Scheduled Delivery.  Anytime you wish to unsubscribe follow these steps.
    Although I am an HP employee my posts and replies are my own.

    Hi N2KZJ,
    Try the solutions located at this website: How to Manage, Pause, or Unsubscribe from Prints and Faxes
    Please post here if you this solved your problem (and select Solved) or if you need further help.
    JamieAtHp
    I work on behalf of HP.

  • Site Blocking with Schedule

    I would like to know of ways to block websites, and with schedules. As in, from 1PM to 3PM, they are unblocked but otherwise always block.
    Thank you for your attention.

    Hi Winfred Edern,
    Please try to use the Threat Management Gateway (TMG)  in
    Windows Forefront, you can set up a "Block Websites" rule and schedule this rule.
    For more detailed information of the setting, please refer to these articles:
    How to Block Websites in Threat Management Gateway (TMG) 2010
    Microsoft Forefront TMG - Best Practices Firewall policy rules
    I hope this helps.

  • ACL with schedule

    Dear,
    I have a customer who want deny a service with schedule, he can´t do it on firewall, for this reason he want block a traffic from the main office to a small office across MPLS link.
    The Idea is deny this traffic on catalyst 4507 that is connected on MPLS link for a specific time.
    I saw in Cisco's web site about Kron, but to be honest I didn´t understand.
    Anyone know anything that I can make on 4507 to solve this problem?
    Thanks

    If I remember right, the Cat 4500 also supports time-based ACL. If thats the case something like the following should work:
    time-range workhours
    periodic weekdays 8:00 to 18:00
    ip access-list extended TEST
    deny tcp any any eq www time-range workhours
    permit ip any any
    interface gigabitethernet3/0/1
    ip access-group TEST out

  • Call Forwarding with Schedule

    I'm wondering if it's possible to set up call forwarding with schedule? For example, calls received at the Skype Number will be forwarded to phone number A from 12am to 12pm, phone number B from 12pm to 4pm, and a Skype contact from 4pm to 12am.
    Thanks!

    Hi, Jimliu, and welcome to the Community,
    Fabulous idea!  Unfortunately, the Skype Number feature does not provide such facility as you describe.
    Best regards,
    Elaine
    Was your question answered? Please click on the Accept as a Solution link so everyone can quickly find what works! Like a post or want to say, "Thank You" - ?? Click on the Kudos button!
    Trustworthy information: Brian Krebs: 3 Basic Rules for Online Safety and Consumer Reports: Guide to Internet Security Online Safety Tip: Change your passwords often!

Maybe you are looking for

  • New CD's not erasable on my iMac?

    I have iMac with OS X 10.6.4. When I put a new CD marked CD-R into drive it comes up not erasable and can't format. I'm new at iMac. What kind of CD's and DVD's are appropriate to use? Is there any brand that is superior? Thanks

  • Is there anyway to access deleted Time machine backups

    I have a fairly new Imac [Sep 2011] with an SSD and 1TB ,setup b apple. Because of a simple mistake, I messed up this and in doing this I must have deleted Backup on Time Machine. Only backups I am seeing now are from my Network  Macbook Pro Is there

  • Confirmed LRS at point of order but monthly LR cha...

    Hi - I ordered BTI2 on bt.com end of April when LRS was at £141 and received an order confirmation for that via email. Now I received my first bill and the line rental is charged at £15.99 and LRS is not activated. I called BT support but after 20 mi

  • Large amount of physical reads

    Any query using a CONTAINS accessing our main IMT index does a huge amount of physical reads. The cost according to an explain plan is great, only 3, but usually over 2000 physical reads each time. Even if you do the same one over and over, it never

  • LOGIN PROBLEM AFTER APPLYING SAP_ BASIS PATCHES

    Hi Experts, I applying sap_basis support pack from level 16 to 20. when applying first patch it create more dumps and give the below syntax error. After that it cannot allowed to login to the GUI and create a dump. No any transcations codes are allow