How to create a new Handling unit assigned to a Shipment?

Hi,
has anyone an experience how to create a new HU and assign it to a shipment (object type VEKP-VPOBJ = '04')?
I need to create it via SAPConsole transaction. Originally I intended to use LM19 to create an unassigned HU and to assign it further on via some BAPI. But I could not find any suitable BAPI for the assignment. Standard transaction LM24, allows only to create a HU with an assignement to a delivery (outbound/inbound).
Thank you
Martin

If you want to use function modules to accomplish this, here is 1 way.
BAPI_HU_CREATE
BAPI_TRANSACTION_COMMIT
BAPI_HU_CHANGE_HEADER
HU_POST
   lw_hproposal-hu_exid         = i_exidv.  "Ext HU# Optional
   lw_hproposal-hu_status_init = 'A'.          "Planned. -
   lw_hproposal-pack_mat   = i_pack_mat.       "Packaging Material
*  This will create an UNASSIGNED HU object type 12.
   CALL FUNCTION 'BAPI_HU_CREATE'
     EXPORTING
       headerproposal = lw_hproposal
     IMPORTING
       huheader       = lw_huheader
       hukey          = lv_hukey
     TABLES
       itemsproposal  = li_iproposal
       return         = li_return.
*  I could not assign to a shipment unless the commit was done.
IF lv_hukey IS NOT INITIAL.
     CALL FUNCTION 'BAPI_TRANSACTION_COMMIT' 
       EXPORTING
         wait   = 'X'
       IMPORTING
         return = lw_return.
     IF sy-subrc NE 0.
       APPEND lw_return TO et_return.
     ENDIF.
*    Assign to a Shipment
     lw_huheader-pack_mat_object  = i_object.               "04-HU Type for Shipment
     lw_huheader-pack_mat_obj_key = i_obj_key.           "Shipment #   
     lw_huheader-dc_custom_mat    = i_dc_custom_mat."Sets the Dist Channel
     CALL FUNCTION 'BAPI_HU_CHANGE_HEADER'
       EXPORTING
         hukey     = lv_hukey
         huchanged = lw_huheader
       IMPORTING
         huheader  = e_huheader
       TABLES
         return    = li_return.
     e_hukey       = lv_hukey.
*It is still not attached to the shipment until HU_POST is done.
  LS_OBJECT-OBJECT = P_OBJTYP.    "04
   LS_OBJECT-OBJKEY = P_OBJKEY.   "Shipment Number.
CALL FUNCTION 'HU_POST'
  EXPORTING
    IF_SYNCHRON          = ' '
    IF_COMMIT            = 'X'
    IS_OBJECT            = LS_OBJECT
  IMPORTING
    ET_MESSAGES          = LT_MESSAGES

Similar Messages

  • How to create a new UoM and assigning it to characteristic?

    Hi,
    How to create a new UoM and assigning it to characteristic?
    i want to enter cost ( in rupees and laks) against a counter
    but for that counter charecteristic required and for taht charecteristic unit of measure Rs and Laks are not defined in the system.
    So please help me ....

    Hi,
    Use T Code CUNI
    Enter  Unit of Measurement as RS and Text as Ruppes
    Commercial and Technical Display is same as RS
    Numerator is 1
    Denominator 1
    Exponent 0
    Save
    Thanks
    Raj

  • How to create a new Business Unit

    Hello,
    I have problem.
    Can anyone tell me
    1 : How to create a new Business Unit, New Company from Jd Edwards screen means webpage.
    2 : Can i find the User Defined Codes means UDC in jd edwards screen.
    Thanks,
    Shakti Prasad Priyakumar.

    First, let me confirm that you are on JDE World, and not JDE Enterprise One/One World. They are very different environments. JDE World is normally a green screen, IBM Client Access based system.
    If you are on a JDE World menu and you have the proper security access, just type in UDC on the command line and hit <ENTER>. You hopefully are in a test environment when you do this, since it sounds like you have very little knowledge of JDE. The UDC screen will come up. If you know the system code and code of the UDC table you want to look at, you can key them in and bring up that table. Otherwise, do F5. That will let you search by system code and see what table codes are available in each system. If you are not sure what UDC table you need, you can look at the JDE data dictionary for the data item you are interested in and that will tell you the UDC table, if the data item is UDC based.
    As for setting up new business units and company, get to the main general ledger menu. Don't remember the exact path, but you want to get into the setup/define menu for general ledger accounts. There will be separate options there for maintaining companies and for maintaining business units. You want to play with this in a test environment before you do anything for real.
    Hope this helps a bit.
    John Dickey

  • Handling unit - Assigning new number range

    Hi All,
    We are using SAP 4.7 C
    We have a requirement to assign a new number range to handling unit materials(VENUM).
    earlier we were having 6 digit handling unit number. now we need to have 8 digit handling unit number.
    I have used T-code VNKP and created a new range from '00000000000010000000' to '00000000000099999999'
    but while adding the packaging material to handling unit, new handling unit number is being picked from the old range.
    Please suggest.
    Thanks in advance.

    Hi,
    Refer this link
    plant wise handling unit no. configuration
    Regards,
    Vishal

  • Service Manager 9.21: How to create a new instance of scautolistener and assign a port to it.

    Hi,
    2 instances of scautolistener are already running and i want to create a new instance of scautolistener.
    The sm.cfg file entry of scautolistener instances are:
    sm -scautolistener:12670 -debugscauto -log:..\logs\scauto.log
    sm -scautolistener:12690 -log:..\logs\scsmtp.log
    Please guide me as how to create a new instance of scautolistener.

    first, you cannot create instances of methods. but you can create instances of classes (==objects).
    the algorithm for primes does not work yet (its your work) but i inserted the code to create your object.
    import java.math.*;
    public class IsPrime {
    public boolean isPrime1(int arg){
    for(int e = 2; e < arg; e++){
    int remainder=arg%e;
    if(remainder==0){
    System.out.println("This number is not a prime number");
    break;
    else {
    System.out.println("This number is a prime number");
    break;
    return true;
    public static void main(String[] args){
    System.out.println(args.length);
    if (args.length>1){
    System.out.println("Sorry you can only enter one number");
    else{
    String sNum =args[0];
    int iNum=Integer.parseInt(sNum);
    IsPrime myPrimesObject = new IsPrime(); // here is your object
    if (myPrimesObject.IsPrime1(iNum)==true)
    System.out.println("is a prime");else System.out.println("is not a prime");
    }

  • Creation of new handling unit management storage location

    Hello
    I am using transaction HU02 and create a handling unit from existing material. But i don't have any HU management storage locations in the system.
    Could you please explain me how to create a HUM storage location?
    Thanks,
    Ilya

    Hello,
    I am trying to create new Handling unit, with HU02 t-code, and i am getting the following errror:
    The number range object 1 does not exist
    Message no. NR002
    Diagnosis
    The number range object was not defined.
    Procedure
    Maintain the specified number range object using Transaction SNRO.
    I've customized number range for object LE_SSCC in SNRO.
    Сould you please advise, what is my mistake?
    Thx in advance

  • How to create a new place in iPhoto 11 without doing any harm?

    Yes, I know how to create a new place for a photo -- theoretically:
    Select the photo.
    Make sure the Info icon in the lower right portion of the iPhoto window is clicked and the too-tiny-for-any-but-the-youngest-eyes map is displaying.
    Click in "Assign a Place..." and begin typing a place that iPhoto will search for.  It searches in both "your places" (i.e., those that you have already defined) as well as in Google Maps.
    When you see a place in the search results list that you think might be close to the one you mean, select it.
    A pin appears on the itsy-bitsy map.  Move it to the exact place you mean.  You can make controls appear on the map by moving the mouse over the bottom of the map.  The controls allow you to zoom in and out, and to change views (Terrain, Satellite, Hybrid).  When the pin is where you want it, click it. The current name of the location appears.  Modify it to the name you want, then click the check mark.
    That's "all" there is to it ... except for a couple of "gotchas."
    There's a difference between what happens when you select a place that you've defined and when you select a place that Google found in the search results.  If it's a place that you've defined, and you then move the pin to a new location and/or change its name, this will affect all photos assigned to the custom place.  In effect, you are modifying the place.
    All places have a radius associated with them, thereby making them circles.  You can adjust the radius only in the Maintain My Places window.  In the itsy-bitsy map it doesn't even appear.  However, if the newly defined place overlaps existing ones, all the photos assigned to the overlapped places will be assigned to the new one.  Their pins will remain where they were.
    Now, before anybody suggests sending feedback to Apple, let me emphasize that I have been sending Apple feedback on the wrong-headed implementation of Places since iPhoto 9.0.  New versions have come and gone (the current one is 9.1.2), but these "features" have remained.  So my purpose in opening this thread is to consolidate work arounds to these "features" in one place.  My work around: 
    Whenever I define a new place, I select only a single photo.  I try to name my places so that I can distinguish them from those that Google finds.  In order to avoid Gotcha 1 I select a place that Google finds and try to place the pin close enough to where I want it, but far enough from any other places that I've defined.  I give it a name that I can easily find it Manage My Place.
    I immediately open Manage My Places and select the new place.  I first note the pins near it, then decrease its radius, move the pin to the desired location, note the nearby places, and give it its final name.
    I then view Places and navigate to the new place to view the photos assigned to it.  If I'm lucky, there's only one.  Otherwise, I have to reassign the other photos to their correct places.
    Richard

    So... in the hope it will not confuse folks more, let me be more specific of a procedure that works for me...
    Procedure to create a new My Places location.
    OK there is more you can do with a non-GPS Coord linked photo.
    Click Info and then click Assign a Place in the lower right of screen. (if your photo has a location linked to it already the Assign a Place will NOT show up.)
    Choose a location name near the actual location that Google Maps can find.
    Click that location in the Google Maps list that appears and your photo will be temporarily assigned to that location.
    Now  type over that  location name in order to make sure to give that location a unique name that will show up in your My Places list and click that name after you have typed it  to be sure it is accepted.
    Now in iPhoto click Window/Manage My Places and go the that newly named location in the large My Places map. There's no easy search. You have to run down through the alphabetical list.
    Drag the flag to the location you want this place to be and click Done.
    The location name is now in your My Places list at the location you dragged the flag to!
    It is important to note that only your unique named locations show up in your Places list, so if you want to modify the location coordinates you have to establish a unique name for it.
    This is much more complicated that previous iPhoto versions!
    But Yeah!!!!!!!!!!
    It really works!!!!!!!

  • How to create a new Condition for tax as VAT ( 4 % )  in SAP ? .

    Dear All ,
                           Pl guide that " How to create a new Condition for tax as VAT ( 4 % )  in SAP ? . What are all necessary requirements to do so , I need to have all steps so that i should feel very confident . For example what data is to be ticked in Control tab during cond. creation , in the same way how to put this cond. in Pricing procedure ? pl write all necessary thing which are required during this process .
    Thanx & deep regrads to all in adv.
    sap11

    In tax we can configure taxprocedure two types i.e., taxinn and tainj. If you adopt taxinn procedure if  it is other than VAT condition first you have to create the condition type and then you have to go to FTXP and assign the tax required VAT percentage to the repective % to ded or non ded VAT condion type. In second step you have to assign this tax code to respective company code.
    If you adopt taxinj procedure you have to a create tax code with FTXP T-code by assigning the values to the respective and save conditions.
    Regards,
    Bhuvan

  • How to create a new field in a sub screen in material master. ?

    How to create a new field in a sub screen in material master. ?
    Kindly help us.
    LIke wise tell me how to create a new sub screen as per my desired

    Follow the documentation of Logistics - General->Material Master->Configuring the Material Master->Create Program for Customized Subscreens  to add the new field in material master.
    Create Program for Customized Subscreens
    In this IMG activity, you can create a function group of your own by copying function group MGD1 (for industry) or function group MGD2 (for retail). The subscreens are not copied, except for two subscreens which are copied for technical reasons. You can use this copy to create subscreens of your own which you can assign to a data screen in the activity Define Structure of Data Screens for Each Screen Sequence.
    Requirements
    Be sure to read the program documentation first.
    Activities
    1. Create a function group of your own by choosing Execute.
    2. Enter a name containing up to 25 characters, beginning with the letter Y or Z, and choose Save.
    3. Access the Object Navigator.
    You do this from the SAP standard menu by choosing Tools -> ABAP Workbench, and then Object Navigator.
    4. Display either program SAPLMGD1 (industry) or SAPLMGD2 (retail) as required.
    5. Copy the subscreens as required, ensuring that they already contain as many as possible of the field names you want to use in your function group. You do this as follows:
    a) Choose Screens, position the cursor on the corresponding subscreen, and choose Copy in the context menu.
    b) Enter the program to which you want to copy the subscreen, prefixing it with SAPL, and enter a screen number. Use the screen number of the original subscreen where possible. If the F1 help is specific to a particular subscreen, this ensures that this context-specific help continues to be displayed.
    Example
    You have called your function group YENTERPRISE, to which you want to copy subscreen SAPLMGD1 2301. Enter SAPLYENTERPRISE as the program to which the subscreen is to be copied, and enter (preferably) 2301 as the screen number.
    6. Return to the initial screen of the Object Navigator and display your program. In the example above, you would enter SAPLYENTERPRISE.
    7. Choose Update object list.
    8. Select the subscreen you have copied and activate it by choosing Activate in the context menu.
    Using the Screen Painter, you can remove fields you do not require on the subscreen or include additional fields from other subscreens (see the ABAP Dictionary). For information on the Screen Painter, see the SAP library documentation BC ABAP Workbench Tools.
    Points to consider when removing or adding fields
    Make sure that a field statement exists for each field on the subscreen since data may not otherwise be transported correctly. You can use subscreen SAPLMGD1 2002 as an example.
    For the fields you have added, include any check modules and modules for self-programmed F4 help that are called up for these fields on the original subscreen. You can do this by displaying the flow logic for the original subscreen and searching for such modules. They normally have the same names as the fields themselves. When you find a module, copy the corresponding module call to your subscreen.
    If you change the order in which fields are transported that are checked together in the flow logic (such as the safety stock and minimum safety stock), you must deactivate the check module for the first field and activate it for the second. The system would otherwise transport the first field, and carry out the check before the second field is transported.
    Any error messages that fields are unknown when activating the subscreen are due to the fields still being included in checks, even though you have removed the fields from the subscreen. Search for the fields in the source code and make the lines in which they appear comment lines. Then reactivate the screen.
    9. Assign the subscreen to a data screen as required.
    Note on transport
    Use the Workbench Organizer to transport the copy you have created.
    Proceed

  • Hai , How to create 'Define New ' ?

    hai,
    How to create 'Define New ' in Combo box and then Enter the value in the user defined table how to get the value  from the database table and display combo box ?

    Hi.
    I used this example for the matrix column. It's work and open a form for defining new values.
    Your need to add an event to refresh values in combobox.
    Think I help you.
    Best regards
    Sierdna S.
    P.S. How to proceed.
    1) Fill the combobox with valid values:
    Try
      ' Add first value to combobox
      oCombo.ValidValues.Add("", "")
      Dim oRS As SAPbobsCOM.Recordset
      oRS = SBO_Company.GetBusinessObject(SAPbobsCOM.BoObjectTypes.BoRecordset)
      Dim sSql As String = "SELECT Code, Name FROM [@" & sLinkedTable & "]"
      oRS.DoQuery(sSql)
      oRS.MoveFirst()
      While oRS.EoF = False
          oCombo.ValidValues.Add(oRS.Fields.Item("Code").Value, oRS.Fields.Item("Name").Value)
          oRS.MoveNext()
      End While
      ' Last value
      oCombo.ValidValues.Add("Define","Define")
      If Not oRS Is Nothing Then
          System.Runtime.InteropServices.Marshal.ReleaseComObject(oRS)
          oRS = Nothing
      End If
      System.GC.Collect() 'Release the handle to the table
    Catch ex As Exception
      ' log exception
    Finally
      oCombo = Nothing
    End Try
    2) In Item event handler
    If pVal.EventType = SAPbouiCOM.BoEventTypes.et_COMBO_SELECT _
    And pVal.FormUID = sFormUID _
    And pVal.ItemUID = sMatrixUID _
    And pVal.ColUID = sColUID _
    And pVal.BeforeAction = False _
    And pVal.ItemChanged = True _
    Then
      Try
        Dim oMatrix As SAPbouiCOM.Matrix
        oMatrix = oForm.Items.Item(MatrixID).Specific
        If oMatrix Is Nothing Then Throw New Exception("ERROR: matrix object is nothing"))
        Try
          Dim oCombo As SAPbouiCOM.ComboBox
          Dim sValue As String = ""
          oCombo = oMatrix.Columns.Item(sColUID).Cells.Item(pVal.Row).Specific
          sValue = oCombo.Selected.Value
          If sValue.Equals("Define") Then
            Try
                oCombo.Select(0, SAPbouiCOM.BoSearchKey.psk_Index)
                oForm.Refresh()
            Catch ex As Exception
            ' log exception
            End Try
            SBO_Application.Menus.Item("<menu id to activate>").Activate()
          End If
          BubbleEvent = False
        Catch ex1 As Exception
          ' log exception
        End Try
      Catch ex As Exception
        ' log exception
      End Try
    End If

  • How to re-use of handling unit number (SSCC)?

    Dear,
    We are implementing handling unit management to our customer and HU number is SSCC code. The inbound process intended to use is as follows:
    1. Create purchase order with confirmation control key 0004 (shipping notification) and receiving storage location is a HU-managed storage location.
    2. Create inbound delivery against the purchaser order via VL31N.
    3. Pack HU in the inbound delivery and then post goods receipt.
    Further, our customer is using fix SSCC on each pallet physically, so we will maintain external HU number range in SAP accordingly, but the issue is, how to re-use of the SSCC in the inbound process? Currently, once the HU (SSCC) is received in SAP, the system status will be PHEX and WHSE, then next time when the pallet is empty physically, we still cannot re-use of the HU (SSCC) in the inbound delivery for GR process in SAP.
    Can anyone of you give me some suggestions how to re-use of handling unit (SSCC) in SAP?
    Thanks in advance.
    Br,
    Jason

    Hi Jason
    As far as I know it cannot be done in any standard way. The only way is to reset the status of the HU using program ie make changes at Table level VEKP-HU_STATUS.
    or during the final issue of the SSCC from the system looks for BADI/Exit to achieve the same or do it through batch program to reset the status
    Regards
    Jayaram

  • How to create a moveable holiday and assign it to a Holiday Calendar?

    Hi Experts,
    How to create a moveable holiday and assign it to a Holiday Calendar?
    Regards,
    Tomesh

    Hi Tomesh,
    Floating Holidays are created for holidays for which the dates are not decided for the years ahead or dates may changes each year or when a unusual holiday is just introducted for one year.
    1.Use transaction SCAL or use the IMG path to the holiday calender.
    2.Create a new holiday and select the option " is a movable holiday".
    3.Fill in the " public holiday attribute tab" and hit insert date.
    4.Fill in the year, month and date for the floating holiday or you could do multiple years at the same time if dates are know and hit create.
    5. The new public holiday is created.
    6.Assign the new holiday to the holiday calender, while saving you will get a message that " an irregular public holiday is created and being save hit ok. This message will appear in cases when the holiday calender validity and the validity of the floating holiday are matching.
    Generate the work schedules and check if th holiday appear in the work schedule.
    Award point if useful.
    Thanks
    Gita

  • How to create a new field

    how to create a new field form se 38 and update it to the customized table in the se11. I have done modification insertion deletion and update of field values in se 38 and has updated to the table in se 11. I want to know how to create a table from se38 and update it to the table in se11.I dont know whether it is possible. Enlight me.
    with regards,
    SREERAM M

    Hi:
    have a look
    [Link1|http://www.wiziq.com/tutorial/17782-SAP-BDC-File-Handling]
    [Link2|http://www.sap-img.com/abap/learning-bdc-programming.htm]
    Regards
    Shashi

  • How To create a new R/3 source System ?

    Hello,
    Can somebody guide me to a white paper or something related which explains in detail how to create a new R/3 source System in BW?

    hi jay,
    while i don't have a white paper, it was as simple as right-clicking the source systems tree in AWB and creating a new one - the process is simplified if you're using release 3.0E up, but i can't help you much if not. but you basically have to create an RFC connection to the source system, create a BW user, assign the IDOCs properly (this one i don't know how to do), and linking them all up together in one source system.
    if i come across any notes, i'd be more than happy to help.
    i'll try asking our Basis people too, just in case they know of anything i could point you at.
    ryan.

  • How to create a new custom tag in JSF 1.2

    Hi there,
    In JSF 1.2, all the classes (CommandButtonTag, CommandLinkTag, DataTableTag,...) in package com.sun.faces.taglib.html_basic are defined as final class. In JSF 1.1, we can create a custom tag that extends the tag in JSF taglib; it save us lots of time.
    Could anybody know how to create a new custom tag in JSF 1.2?
    Many thanks,
    Emily

    If I recall, it was done because how tags were to be handled in 1.2 was very different from 1.1 and it was felt that developers shouldn't rely on implementation specific classes (unless they were SPI) for several other reasons (application portability being the big one here).
    If it's felt that this was the wrong decision, please feel free to log an issue [1] against the RI (to date, no one has).
    As to the 'borked' dependency URLs, please log an issue [1] if you find these. We have nightly builds going that work from a clean workspace and checking today's result, it seems ok.
    [1] https://javaserverfaces.dev.java.net/issues

Maybe you are looking for

  • 10.4.5 SCREWED up my Photoshop CS2

    I repaired permissions before and after my update to 10.4.5. Now it seems that when photoshop is open, i can't open other files by dragging them to the PS icon on my dock. Anyone experience this or have a fix? I hate this upgrade. Expose has frozen u

  • How to use __createdAt in a query

    Hi In Objective C, I'm trying to query a table and get all entities with __createdAt later than someDate. I tried the following code: NSPredicate *predicate = [NSPredicate predicateWithFormat:@"__createdAt > %@", somdeDate]; MSQuery *query = [aTable 

  • Problem in the function module RS_SET_SELSCREEN_STATUS-urgent

    HI ALL, my rewuirement is i need to display my own pf status in selection screen. when i am using below code i getting two buttons only.anybody can tell me where i made a mistake. i am sendingf my code below. TABLES : ZUSER_SECOBJECTS, SSCRFIELDS. DA

  • I can only use trail versions of the apps with creative cloud (full subscription)

    Hello, I'm really disappointed. I bought the Student and Teacher edition of Creative Cloud in order to use all the amazing apps of Adobe. But, it's not working! I can login to my account and install the apps. However, when I start an app as Photoshop

  • Auto run vi after loading path file

    I was wondering if there is a way to automatically run a VI after you click on "OK" to load a file from the file path control as opposed to selecting file and then manually clicking run each time on the front panel toolbar.  I attached the simplified