How to Change Handling Unit User Status

Hi All,
I am trying to change the HU Status using FM 'STATUS_CHANGE_EXTERN' but its not working.
             lx_huheader-hu_id  is the Internal Handling unit number.
            CONCATENATE 'HU'
                        lx_huheader-hu_id INTO
                        lv_objnr.           
            CALL FUNCTION 'STATUS_CHANGE_EXTERN'
              EXPORTING
                client              = sy-mandt
                objnr               = lv_objnr
                user_status         = 'E0002'
              EXCEPTIONS
                object_not_found    = 1
                status_inconsistent = 2
                status_not_allowed  = 3
                OTHERS              = 4.
Please guide me.
Thanks
Srinath

HI...
add this Export parameter in the call of function module,
           SET_CHGKZ                 = 'X'
after chef id the objnr is correct.........remember to call the commit work, or BAPI_TRANSACTION_COMMIT after the status change.
Marco

Similar Messages

  • Handling Unit user status

    Hi all,
    I want to update the HUs with a user status. I have done the following steps.
    1. Defined a status profile (OK02) with a status.
    2. Configured the packaging material type (VHAR) with new status profile.
    3. When I update the status via HUMO>Display/Change>Edit>Status>Set Status, I am getting following error.
                       "HU 23 has no user status"
    Please help me to resolve this issue.
    Thanks
    Guru

    Hi,
    In the Status screen, set status icon is not activated. But in the Status detail screen, when i press F4 on status profile, i am able to see the created status profile.
    Appreciate your help.

  • How to delete handling units for a delivery

    While deleting delivery note there are hundreds of handling units.
    please help me how to delete handling units
    Thanks for the help
    Rajendra Prasad

    Hi
    u can delete Handling Units in change view delivery document.. Click Packing it will show Handling Units..By there itself u can delete..
    IN VL02N

  • How to create Handling Unit using Process Order no. & Packing Instruction

    Hi experts,
    Please guide me how to create Handling Unit using Process Order number & Packing Instruction reference?Noramlly this is done using standard transaction 'COWBPACK'.
    ANY FUNCTION MODULE OR BAPI TO DO THIS.
    if any solution please explain with proper example..
    Thanks In advance
    Thanks,
    Yogesh

    Hi experts,
    Please guide me how to create Handling Unit using Process Order number & Packing Instruction reference?Noramlly this is done using standard transaction 'COWBPACK'.
    ANY FUNCTION MODULE OR BAPI TO DO THIS.
    if any solution please explain with proper example..
    Thanks In advance
    Thanks,
    Yogesh

  • How to change the engine's status

    How to change the engine's status?
    Thanks

    In the process administrator there is a little play of stop button next to each engine.
    This is only in enterprise or standalone version off course.
    It this doesn't answer your question please supply some extra information.
    Kind regards
    Nils.

  • How to change the portal user id 's assigned employee in ESS configuration

    Hello Gurus,
        I now have a question related to ESS configuration. I want to know how to change the Portal user's pernr assignment in the ECC 6.0 system. Somebody had actually assigned my portal user ID a PERNR in the ECC 6.0 system. But now, for test purposes, I want to change the PERNR assignment to something else for my portal user id.
    Could any of you please guide me in doing these steps?
    Points will definitely be awarded for helpful answers.
    Thanks gurus in advance for your help.
    ~~LB

    Hi Leena,
    You can create a new user name with the username and password assigned to it, with the transaction SU01.
    Ex : ESS_USER1
    Go to transaction code : PA30.
    Enter the pernr you want to assign to the user ESS_USER1 that you have created earlier.
    Enter infotype number : 105
    Now go ahead and click on the change button.
    And assign the user name as ESS_USER1.
    Then the pernr number will be assigned to the ESS_USER1 that you have created.
    You can check the same when you go to the HRUSER transaction code.
    Please let me know if you still have any issues on the same.
    Cheers.
    Sandeep

  • How do u handle the user parameters for a currency field.

    How do u handle the user parameters for a currency field.
       Decimal saperator and a hundreds saperator. (depending upon the user parametes set for the user the saperators may differ)
          Eg: currency field: 13.896,01 (In this case u2018,u2019 is a thousand saperator and u2018.u2019 is a decimal saperator) How to handle this one.
    Regards,
    Ram.

    Hi,
    Try this code....
    DATA: V_KURSF1 TYPE c LENGTH 10,
            v_kursf2 type c LENGTH 10,
            v_dcpfm    TYPE xudcpfm, "Decimal or Thousand Notation
            v_thousand TYPE char1,   "Thousands Notation
            v_decimal  TYPE char1.   "Decimal Notation
      CONSTANTS:    c_x      TYPE char1 VALUE 'X',
                    c_y      TYPE char1 VALUE 'Y',      "Value Y
                    c_comma  TYPE char1 VALUE ',',      "Comma
                    c_point  TYPE char1 VALUE '.',      "point
                    c_blank  TYPE char1 VALUE ' '.      "Blank
      IF v_dcpfm IS INITIAL.
        SELECT SINGLE dcpfm
        FROM usr01
        INTO v_dcpfm
        WHERE bname = sy-uname .
        IF sy-subrc = 0.
          CASE v_dcpfm.
            WHEN c_x.
              v_decimal  = c_point.
              v_thousand = c_comma.
            WHEN c_blank.
              v_decimal  = c_comma.
              v_thousand = c_point.
            WHEN c_y.
              v_decimal  = c_comma.
              v_thousand = c_blank.
          ENDCASE.
        ENDIF.
       ENDIF.
               Find c_point in  wa_segment-exchange_rate.  ( Eg:ield)
              if sy-subrc = 0.
                replace c_point in wa_segment-exchange_rate with v_decimal.
              endif.

  • Change Handling Unit Dimensions

    Hi,
    Is there any function module to change Handling Unit Dimensions (length, height and width).
    BAPI_HU_HEADER_CHANGE does not help as this FM works only for non-assigned handling units where vpobj eq 12 ,05 and 06.
    I need something for VPOBJ = 01.
    Any idea. Thanks in advance.

    Hi,
    Why you need to change the dimension of Handling Unit ?
    Dimension of Handling Units are derived from the packaging material types, if you have a packaging material type like Pallet of different dimension you should create a different packaging material type and use.
    As this dimension of Handling Units is further required to calculate the Storage Bin Capacity in your warehouse.
    Please check and confirm.
    Regards,
    Harsh

  • Urgent: change/read HU user status

    Hi people,
    I'm required to read and change the user status on handling units. I've been looking into the  STATUS_* function modules (fgroup BSVA) but they don't seem to pick up the status I'm looking for.
    I also can't find where the status is saved in the database (it isn't in table JSTO where I'd expected it would be).
    Help would be appreciated (will reward points)
    Thanks,
    Rob

    Hi Rob Smeets,
                           below is the code to get the status number....
    data:   v_stonr like TJ30-STONR.
      CLEAR : v_stonr.
      CALL FUNCTION 'STATUS_TEXT_EDIT'
        EXPORTING
         client                  = sy-mandt
         flg_user_stat           = 'I'
         objnr                   = vbak-objnr
         only_active             = 'X'
         spras                   = sy-langu
    *   BYPASS_BUFFER           = ' '
    IMPORTING
    *   ANW_STAT_EXISTING       =
       E_STSMA                 =     GV_USERSTATUS
    *   line                    =     v_flag2
    *   USER_LINE               =     v_user1
        stonr                   =     v_stonr
    EXCEPTIONS
       object_not_found        = 1
       OTHERS                  = 2.
    IF sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    below is the code with function modules to select the status to change the user status....
            CALL FUNCTION 'I_STATUS_SELECT'
              EXPORTING
                OBJNR                     = vbak-objnr
                SENT_USER_STATUS          = 'RJCT'
              IMPORTING
                SELECTED                  = E_SELECT
                CURRENT_USER_STATUS       = E_CUR_STUS
                NEXT_USER_STATUS          = E_NEX_STUS
                USER_STATUS_PROFILE       = E_USR_PROF
              TABLES
                SYST_STATUS_INCL          = SYS_ISTATUS_RANGE1
                SYST_STATUS_EXCL          = SYS_ISTATUS_RANGE2
                USER_STATUS_INCL          = USR_ISTATUS_RANGE1
                USER_STATUS_EXCL          = USR_ISTATUS_RANGE2
             CALL FUNCTION 'I_CHANGE_STATUS'
               EXPORTING
                 OBJNR                = vbak-objnr
                 ESTAT_INACTIVE       = E_CUR_STUS
                 ESTAT_ACTIVE         = E_NEX_STUS
                 STSMA                = E_USR_PROF
               EXCEPTIONS
                 CANNOT_UPDATE        = 1
                 OTHERS               = 2
             IF SY-SUBRC <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
             ENDIF.
             CLEAR : E_SELECT,
                     E_CUR_STUS,
                     E_NEX_STUS,
                     E_USR_PROF.
    This logic I have used in UserExit MV45AFZZ to change the user status to "REJECTed" when Net Selling Price is less than Cost......
    In this first I am getting the active user status number.....
    for Created = 10,
    for approved = 20,
    and for rejected = 30..
    based on this I am changing the status if net price is lower then cost price to Rejected......And if the the user or approval authorithy apporves the same then it he have to maintain a text in the header text for approval...
    If any other help please let me know.....
    Reward the point...
    Cheers,
    Enjoy,
    Sagun Desai.....

  • How to unassign handling unit in outbound delivery?

    (Don't Want to delete HU onlu unassign it from delivery: WM requirement)
    I would like to unassign HU in an outbound delivery.
    code i'm using make the handling unit disappear in the overview of HU.
    but corresponding line in the "item overview" are still existing.
    And when I want to copy pack quantities as delivery quantities, system tell me that "50.000 M have already been packed. Quantity cannot be changed. "
    How can I do, to do as if i pushed button "delete assignment" in HU overview?
    Here the code I'm using:
    CALL FUNCTION 'HU_PACKING_REFRESH'.
    CALL FUNCTION 'HU_GET_HUS'
    EXPORTING
    if_lock_hus = 'X'
    it_venum = I_VENUM "it_venum contains l_venum
    IMPORTING
    ET_ITEM_SERIALNO = o_item_serialno .
    CALL FUNCTION 'V51P_DELETE_RELATIONSHIP'
    EXPORTING
    IF_CONTROL = 'X'
    IT_HUS = i_venum
    IMPORTING
    ET_NEW_HUS = LT_HUS
    et_messages = lt_messages
    EXCEPTIONS
    FATAL_ERROR = 01 .
    CALL FUNCTION 'HU_POST' .
    call function 'BAPI_TRANSACTION_COMMIT'.
    Please let me know the function module if anybody has idea to unassign from delivery.
    Edited by: Akshay Kale on May 4, 2010 7:04 AM

    Hi Akshay,
    This question is marked as Answered , can you please let me know how you have resolved this error .
    My Requirement is to remove HU assignment from inbound Delivery . If possible can u provide me the code snapshot to remove assignment for inbound delivery.

  • In ldap how do you handle to users logged in at the same time

    in ldap if i am logged in as one user and make a change to a page and another user makes another change how do i handle refresh the other persons logged in pages...

    Hi,
    to which page do you add a change and what has LDAP to do with this ?
    Frank

  • BAPI for changing Work order user status in IW32

    Hello Experts,
    I am getting Same Problem in updating status via BAPI, BAPI_ALM_ORDER_MAINTAIN.  Its not giving any error but even not update status.
    I know i can use this for changing the user status also but not sure how to carry out things.
    I used this code.
    fi_methods-method = 'SAVE'.
    APPEND fi_methods.
    fi_methods-refnumber = 1.
    fi_methods-objecttype = 'USERSTATUS'.
    fi_methods-method = 'CHANGE'.
    fi_methods-objectkey = '002000002453'.
    APPEND fi_methods.
    fi_userstatus-user_st_text = 'COMM'.
    fi_userstatus-user_langu   = 'EN'.
    fi_userstatus-change_event = ' 01 '.
    APPEND fi_userstatus.
    CALL FUNCTION 'BAPI_ALM_ORDER_MAINTAIN'
      TABLES
        it_methods    = fi_methods
        it_userstatus = fi_userstatus
        return        = fi_return.
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
    Above code I am using and there the message comes like
    T ID                   NUM           MESSAGE
    S IW                   080           Order saved with number 2000002453
    S IWO_BAPI2     110           BAPI control was ended
    can any on know what is wrong in this? please help if having knowledge.
    Thank You,
    Jahnavee Trivedi

    I am getting Same Problem.
    fi_methods-method = 'SAVE'.
    APPEND fi_methods.
    fi_methods-refnumber = 1.
    fi_methods-objecttype = 'USERSTATUS'.
    fi_methods-method = 'CHANGE'.
    fi_methods-objectkey = '002000002453'.
    APPEND fi_methods.
    fi_userstatus-user_st_text = 'COMM'.
    fi_userstatus-user_langu   = 'EN'.
    fi_userstatus-CHANGE_EVENT = ' 01 '.
    APPEND fi_userstatus.
    CALL FUNCTION 'BAPI_ALM_ORDER_MAINTAIN'
      TABLES
        it_methods    = fi_methods
        it_userstatus = fi_userstatus
        return        = fi_return.
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
    Above code I am using and there the message comes like
    T ID                   NUM           MESSAGE
    S IW                   080           Order saved with number 2000002453
    S IWO_BAPI2     110           BAPI control was ended
    can any on know what is wrong in this? please help if having knowledge.
    Thank You,
    Jahnavee Trivedi

  • How to change  default unit on Database 11g

    Hi All
    I'm using Oracle Database 11g Enterprise Edition Release 11.1.0.6.0.
    If I define my column:
    USERID VACHAR2(8) --> Default USERID VACHAR2(8 BYTE)
    How can I change default unit BYTE to CHAR as the following
    USERID VACHAR2(8) --> Default USERID VACHAR(8 CHAR)
    Thanks alot
    Thiensu2810

    I have set Database system with the following SQL:
    alter system set nls_length_semantics=char;
    alter session set nls_length_semantics=char;
    But, It does not match.
    And when I insert data, the following error occured.
    SQL> insert into binhtest values('初期化パ');
    ORA-12899: value too large for column string (actual: 12, maximum: 8)
    I've checked value of NLS_LENGTH_SEMANTICS, it is CHAR
    SQL>SHOW PARAMETER NLS_LENGTH;
    NAME | TYPE | VALUE
    NLS_LENGTH_SEMANTICS | String

  • How to change & see the PO Status (Purchase Order Status) ?

    Hi Everybody,
    I have to change the PO Status. For this I am using the Function Module 'BBP_PD_PO_STATUS_CHANGE'. But it is not changing the PO Status. How/Where to see the PO Status?
    Please help me out asap.
    Thanks & Regrds,
    Nagaraju Maddi
    Message was edited by: Nagaraju Maddi

    Hi ,
    It is possible to Update the Pricing procedure in Old PO. For this what you need  to do is Open PO in ME22N transaction, in the header Org. Data tab remove the Purch. Org and Company Code and press Enter Key for 3 or 4 times now enter the Purch. Org and Company Code now check in the Item Data, condition tab Analysis button new Pricing procedure is picked up. Even we can change the PO Currency in this way if it is changed in Vendor master.
    Hope this will help you
    Best Regards,
    Pradeep Naik

  • How to change the sender user id of workflow

    Hi,
    From our system workflow three mails are sending to different recipients. Two mails are sending through WF-BATCH user and another one mail is send through ADMINU user. Now we want send other two mails also should send through ADMINU user only not by WF-BATCH.
    We know that WF-BATCH is the standard user provided by SAP will send mail through workflow. but how to change this user.
    In ECC 6.0 we could see the transaction SWNCONFIG to make changes for sender. But in 4.7 that transaction is not there.
    So could you please tell me, how to change sender of workflow mail from WF-BATCH to ADMINU.
    Thanks in Advance.
    Regards,
    Ajay

    Hello,
    What email address do these emails come from? What's different about the case where it comes from ADMINU?
    If you search this forum for WF-BATCH you'll see many similar questions.
    My response is to have a dummy foreground step beforehand assigned to the user that you want sending out the mails ; the next background task is usually run under the same username.
    regards
    Rick Bakker
    Hanabi Technology

Maybe you are looking for

  • Creative Zen Vision M

    C I have had this player in the past and fell in love with it. I actually had two..both died...my own fault..long story. But anywho.... I know that Creative has them for sale refurbished. I really miss my Mp3 player...have not had one since January.

  • UWL Help - How can i create my own task within the Enterprise Portal

    Dear all, I am currently working with UWL . I have tried the customization and those stuffs associated with UWL , and it is working properly. My current issue is , how can create my own task within the Portal ( not using Ad Hoc  Workflow , which is p

  • IPod to iTunes copy with Artwork

    I've been reading other discussions on how to copy a music library from an iPod to iTunes. Can anybody recommend a program to use to this that will also copy the artwork as well? Thanks.

  • F.27 and FBL5N

    Hi All Our cusotmer runs their credit agents statement for every month for their travel Bookings for outstanding dues and overdue, recently ABTA was assigned to Head Office, so the system is able to capture only those transactions which took place af

  • Memory Leak in Algorithms.Cast function?

    I have the following line in my code: Algorithms.Cast(OrigImage, tempRGB, ImageType.Rgb32) OrigImage is a U8. It appears to have a 7mb memory leak. Before: 81168K, After:    88560K Has anyone else noticed this? Is there a fix? Note: I properly dispos