Picking with SD_DELIVERY_UPDATE_PICKING

Hello,
I am using function module SD_DELIVERY_UPDATE_PICKING to pick delivery items. This FM is being called in a loop for each delivery item. Delivery has two items, and each item has to be picked in two batches. This FM call is working fine if there is only one item in delivery. When delivery with two items are processed, 2nd item throws error message as "Item 900003: Only 0 qty from material xxxx are available". But when I check the delivery after the FM call, it shows first item as picked correctly under two batches.
Here I have showed the code I am using to call FM.
Loop at delivery_itab.
wa_vbkok-vbeln_vl = wa_e1edl20-vbeln.
wa_vbkok-wadat_ist = lv_pgidate.
wa_vbpok-vbeln = wa_e1edl20-vbeln.
wa_vbpok-posnn = wa_e1edl24-posnr.
wa_vbpok-vbeln_vl = wa_e1edl20-vbeln.
wa_vbpok-posnr_vl = wa_e1edl24-posnr.
wa_vbpok-charg = wa_e1edl24-charg.
wa_vbpok-matnr = wa_e1edl24-matnr.
wa_vbpok-vbtyp_n = 'J'.
wa_vbpok-taqui = 'X'.
APPEND wa_vbpok TO lt_vbpok.
...For each delivery item...
CALL FUNCTION 'SD_DELIVERY_UPDATE_PICKING'
EXPORTING
vbkok_wa = wa_vbkok
synchron = 'X'
nicht_sperren = 'X'
if_error_messages_send = 'X'
TABLES
vbpok_tab = lt_vbpok
prot = lt_prot.
Endloop.
I also tried function module WS_DELIVERY_UPDATE in the same place of code. That also gives the same issue. I tried WS_DELIVERY_UPDATE as showed below.
CALL FUNCTION 'WS_DELIVERY_UPDATE'
EXPORTING
vbkok_wa = wa_vbkok
synchron = 'X'
commit = 'X'
delivery = wa_vbkok-vbeln_vl
update_picking = 'X'
TABLES
vbpok_tab = lt_vbpok
prot = lt_prot
EXCEPTIONS
error_message = 99.
Also I tried to call the FM with all the delivery items appended in itab lt_vbpok. That doesn't work, gives the same error message. I have also taken care to wait until delivery update is commited. Also I am doing Enque and Deque for the delivery document.
Can you pls suggest me if I am missing any parameters / any thing here ? I would greatly appreciate your help.
Thanks
Hari

Hi ,
           Try this way
Step 1
loop at tvblkp.
    hvbpok-vbeln_vl = tvblkp-vbeln.
    hvbpok-posnr_vl = tvblkp-posnr.
    hvbpok-posnn = tvblkp-posnr.
    hvbpok-vbeln = vblkk-komau.
    hvbpok-vbtyp_n = 'Q'.
    hvbpok-pikmg = tvblkp-komng.
    hvbpok-meins = tvblkp-meins.
    hvbpok-ndifm = 0.
    hvbpok-taqui = ' '.
    if tvblkp-posnr > '900000' and not tvblkp-uecha is initial.
      hvbpok-taqui = 'X'.
    endif.
    hvbpok-charg = tvblkp-charg.
    hvbpok-matnr = tvblkp-matnr.
    hvbpok-brgew = tvblkp-brgew.
    hvbpok-gewei = tvblkp-gewei.
    hvbpok-volum = tvblkp-volum.
    hvbpok-voleh = tvblkp-voleh.
    hvbpok-orpos = 0.
    append hvbpok.
  endloop.
*--call FM after the loop.
Step 2 .
sav_nast = nast.
  call function 'SD_DELIVERY_UPDATE_PICKING'
       exporting
            nicht_sperren = 'X'
            vbkok_wa      = vbkok
            aufrufer_t    = 'X'
            if_error_messages_send = ' '
       tables
            vbpok_tab              = hvbpok
            prot                   = lt_prot.
Regards,
Vind

Similar Messages

  • Date Picker with Previous and Next Year Options

    Hi All,
    I am implementing a date picker in my application which is tied to an attribute of type PA0001-BEGDA. Date Picker as such works fine but navigating to previous year and Next year options are not available. User has to go month by month to different years if they have to navigate.
    Is this the normal behavior of the Date Picker or am I missing something else to get the previous and Next year icons in the Date Picker.
    Thanks,
    Nagarajan.

    hmm..I tried using the select options and it did give the same date picker with the previous and Next navigation icons...The only problem with the select options is that its a single field which has the range and can accept multiple values too...
    I tried to figure out how the date picker that we use in the custom application and the one in Select Options differ but no luck...Does this ring any bell?
    Thanks,
    Nagarajan.

  • Need to bind people picker with group members in AD in office 365 using Client object model in javascript

    Hi,
    I need to create a form in SharePoint designer so that it can display and save selected users. Users should be selected for particular group. Group and users are in AD. Form would look like below:-
    Group1                            People picker with users of Group1 only
    Group2                            
    People picker with users of Group2 only
    Save button to save this mapping in some List for selected users and groups
    I need to do this using CSOM/Javascript in office 365.
    Thanks a lot!
    Arvind
    arvind chamoli

    Hi Venu,
    check those options
    http://www.thesharepointblog.net/Lists/Posts/Post.aspx?List=815f255a-d0ef-4258-be2a-28487dc9975c&ID=135
    http://paultavares.wordpress.com/2012/04/28/sharepoint-ui-widgets-upload-and-pickusers/
    http://spservices.codeplex.com/wikipage?title=Users%20and%20Groups&referringTitle=%24%28%29.SPServices
    http://spservices.codeplex.com/wikipage?title=UserProfileService&referringTitle=%24%28%29.SPServices
    http://blog.vgrem.com/2013/03/27/different-ways-of-extending-people-editor-in-the-client-side-sharepoint-2010/
    this one for 2013 but worth that u check it
    http://msdn.microsoft.com/en-us/library/office/jj713593(v=office.14).aspx
    Kind Regards, John Naguib Technical Consultant/Architect MCITP, MCPD, MCTS, MCT, TOGAF 9 Foundation. Please remember to mark the reply as answer if it helps.

  • Date Picker with seconds?

    Hi everybody,
    In my APEX application, for a particular form element, I need to setup a date picker with date + time with seconds.
    Unfortunately, in the differents masks that can be used for date picker element, there is not support of seconds.
    I have tried to set the default date format at "DD/MON/YYYY HH24:MI:SS" for my application, then to choose the date picker based on the application default date format, but still no support for seconds, only hour and minutes...
    Does anyone have an idea about that issue, and a way to implement seconds in my date picker? The point is that I need to be able to select the exact second in a range.
    Maybe something with jQuery or something else?
    Any help much appreciated!
    Thanks,
    Romain.

    Yes, this is one of the solutions, but of course it will require to create these additional elements...
    Still looking for an "all-in-one" way. If nothing is possible on the date picker level, I will manage it with more elements.
    Thanks,
    Romain.

  • Alternate picks with same stack in different albums?

    I've got a question I haven't been able to find an answer for. Say I have a stack of two images: one is the color original, one is the black & white conversion. Then I have an album called "Black & White picks" and another called "Color picks".
    If I move the stack into the "Color picks" album, and the color image is selected as the pick, there's no problem there. But then over in the "Black & White picks" album, the color image will show up as the pick. Not good.
    Is there any way to have alternate picks with a given stack in different albums? Or do I just need to unstack the photos and put them in the albums individually (this is a pain, because I'd like to keep the images together).
    Thanks,
    Chris

    <...>
    If I move the stack into the "Color picks" album, and
    the color image is selected as the pick, there's no
    problem there. But then over in the "Black & White
    picks" album, the color image will show up as the
    pick. Not good.
    Is there any way to have alternate picks with a given
    stack in different albums? Or do I just need to
    unstack the photos and put them in the albums
    individually (this is a pain, because I'd like to
    keep the images together).
    <...>
    That is exactly what the "Stacks->Set Album Pick" command is for. Inside of any album (even web galleries or a book) use that command (shortcut Cmd-"|") to set some other image in the stack as a pick for that album.
    Inside of a smart album such a concept makes no sense, but you can have smart albums that are able to "peer" into stacks and pull images out that are not the current pick. But be warned - dragging stuff out of smart albums that are thusly found can be a problem as any images that are not the current stack pick will not be found in the dragged-to album!

  • Picking with FM WS_DELIVERY_UPDATE

    Hi all,
    I would like to update an outbound delivery (Quantity, Batch) and also switch the picking status to 'C' with the function module WS_DELIVERY_UPDATE. We are not using WM (so there are no Transports).
    Changing Quantity and Batch (splitting) is working fine, but the picking status is not changing (it is 'A'), although the field PIKMG has been set in VBPOK_TAB of the FM.
    Which fields are required to confirm the picking and switch the picking status to 'C'?
    The FM SD_DELIVERY_UPDATE_PICKING is also not working...
    Regards,
    Martin

    Hi Martin,
    Iam not sure whether WS_DELIVERY_UPDATE would update the batch but it definitely updates the pick quantity.
    Earlier i have done the same things in the below mentioned way:
    1. BAPI_OUTB_DELIVERY_CHANGE - For updating the batches
    2. WS_DELIVERY_UPDATE - For updating the pick quantity.
    It also updates the status to C.
    Just check whether you have passed the parameter 'update_picking' = 'X' in the second FM.
    Please let me know if it doesn't works. I will try to send you the sample code.
    Please give points if useful.
    Regards,
    Sharad

  • Sharepoint 2013 Setting people picker with Jquery not working in IE8

    In a SharePoint 2013 list with a people picker column labeled Name the following code works great in IE9 and IE10, however in IE8 the script shows an undefined is null or not an object error message at spPeoplePicker.AddUnresolvedUserFromEditor(true);
    FYI using jquery min 1.10.2
    Any ideas on how to resolve the issue?
    <script type="text/javascript">
    $(document).ready(function () {
    var userid = _spPageContextInfo.userId;
    //alert(userid)
    function GetCurrentUser() {
    var requestUri = _spPageContextInfo.webAbsoluteUrl + "/_api/web/getuserbyid(" + userid + ")";
    var requestHeaders = { "accept" : "application/json;odata=verbose" };
    $.ajax({
    url : requestUri,
    contentType : "application/json;odata=verbose",
    headers : requestHeaders,
    success : onSuccess,
    error : onError
    function onSuccess(data, request){
    var userName = data.d.Title;
    //set following "field" as column to set in people picker
    SetUserFieldValue("Name",userName);
    function onError(error) {
    //alert(error);
    function SetUserFieldValue(fieldName, userName) {
    var controlName = fieldName;
    var peoplePickerDiv = $("[id$='ClientPeoplePicker'][title='" + controlName + "']");
    var peoplePickerEditor = peoplePickerDiv.find("[title='" + controlName + "']");
    var spPeoplePicker = SPClientPeoplePicker.SPClientPeoplePickerDict[peoplePickerDiv[0].id];
    //comment out this field if edit form needs to be read only
    peoplePickerEditor.val(userName);
    //comment out this field if edit form needs to be read only
    spPeoplePicker.AddUnresolvedUserFromEditor(true);
    //disable the field
    spPeoplePicker.SetEnabledState(false);
    //hide the delete/remove use image from the people picker
    $('.sp-peoplepicker-delImage').css('display','none');
    GetCurrentUser();
    </script>

    Hi David,
    Below is the complete code I have used to load the current user to the people picker in SharePoint 2013.
    $(document).ready(function(){
    SP.SOD.executeFunc('sp.js', 'SP.ClientContext', LoadCurrentUser);
    function LoadCurrentUser() {
    var context = SP.ClientContext.get_current();
    var siteColl = context.get_site();
    var web = siteColl.get_rootWeb();
    this._currentUser = web.get_currentUser();
    context.load(this._currentUser);
    context.executeQueryAsync(Function.createDelegate(this, SetPickersToCurrentUser), Function.createDelegate(this, LoadUserfailed));
    function LoadUserfailed() {
    alert('failed');
    function SetPickersToCurrentUser()
    var loginName = this._currentUser.get_title();
    SetPeoplePicker('Order Team', loginName);
    function SetPeoplePicker(fieldName, userAccountName) {
    var peoplePickerDiv = $("[id$='ClientPeoplePicker'][title='" + fieldName + "']");
    var peoplePickerEditor = peoplePickerDiv.find("[title='" + fieldName + "']");
    var spPeoplePicker = SPClientPeoplePicker.SPClientPeoplePickerDict[peoplePickerDiv[0].id];
    peoplePickerEditor.val(userAccountName);
    spPeoplePicker.AddUnresolvedUserFromEditor(true);
    Let me know if you have any questions. I will help you out!
    -Praveen.
    ASP.NET and SharePoint developer
    Blog: http://praveenbattula.blogspot.com
    Please click "Propose As Answer" if a post solves your problem or "Vote As Helpful" if a post has been useful to you.

  • Text File is not picking with data

    Hi Experts,
    I am doing file to file scenario without IR as file will be generated by the ECC system and places in SAP FTP App Server.
    My job is to pick up the file and send it to the Third Party Application Server.
    But when i am picking up the Text file the data in the file is converting into special characters like below format.
    ÅÁÄÅÙ@ððððððâÖÕÄÅçöôðð@@@@@@òððùð÷ñ÷ðñ%@@@@@@@@@@@@@@òððùð÷ñ÷%ÄÅãÁÉÓ@ðððð
    I have tested with other Application server with same file its working fine, but when i send the file from SAP FTP Appl server the data is converting in the above format.
    Right now when i open file zilla it is opening with 3 FTP Appl Server in that suppose lets say the FTP are APP1, APP2, APP3.
    1.When i send the file from APP1 through Transport Protocol NFS System the file is picking up and  placing successfully in the Third Party APP3 App Server fiolder but the data in the file is converting into special charaters.
    2.when i send the same file from APP2 through Transport Protocal FTP the file is picking up and placing successfully in the third party APP3 App server and here the same data is coming in the text file, there is no data conversion.
    I am not getting here, when i send the file from APP1 the data is converting but when i send the same file from APP2 App srever the data is posting correctly.
    And also i can give you one more info.. if i try with puting the Transport Protocal as FTP in APP1 then i am getting error in sender comm channel as 'log on attempt by User JOHN rejected' : contact your FTP server vendor.
    But i think for sending the file from SAP Appl Server we can use TP as NFS rather than FTP.
    And also i can give one more info: The Version is the ECC system is using the 4.6c for which there is no compatability for unicodes.
    Can anyone please advise what would be the wrong.
    Appreciate your inputs
    Thanks,
    Bhaskar

    Hi,
    Reason because file is not picked up.
    >'log on attempt by User JOHN rejected' : contact your FTP server vendor.
    clearly user/password for this FTP server or system is not correct. Get correct userid/password for your Application server where you are trying to poll.
    >The Version is the ECC system is using the 4.6c for which there is no compatability for unicodes
    File transfer is nothing to unicode here.
    Regards,
    Gourav

  • A way to only sync album picks with iOS?

    I have a smart album that filters by 4 stars or above and I like to keep these photos synced at all times with my iphone/ipads. It works ok except that when we do multiple edits of the same photo in a stack they all get sync'ed. So if we have 7 different style of the same photo, all 7 would go into the devices. Album pick seems to have no effect with this. Is there any around this? I don't see any customization on the iTunes side so perhaps there is a way to make a smart album that only includes one photo of each stack?

    Okay, haven't gotten my Touch yet. When you plug it in, on the Summary page in iTunes is there a box toward the bottom that says "Sync only checked items"?

  • Can't type Pantone values in the Color Picker with Ai CS6

    Hi Illustrators,
    I'm running Design and Web Premium CS6 on a Windows 7 machine. I was recently using Ai's Recolor Artwork dialogue for a CMYK document. I wanted to convert my 4 color artwork to Pantone solid coated. I decided to chose some different Pantones. In older versions of Illustrator I could easily open the Color Picker, click on a Pantone value and then just type in a new value to scroll to it. This is no longer the case with Ai CS6. 
    Does anyone know of a work around?

    Thanks for getting back. It works on Photoshop CS6 (64bt) but not so with Ai
    As long as I'm griping on lost features. Here's another great one that's gone with the CS6 wind...
    In the Swatch Options, you used to be able to scroll through the Color Modes by holding Shift and clicking on the square color preview icon. You used to also be able to get the compliment on the fly by holding Control (Windows) / Command (Mac) and clicking on the same icon. Neither feature works anymore.

  • How to integrate a java script date picker with jsf?

    Hi I have a javascript data picker which I want to integrate with a text tield.. that is <jsf:inputtext tag...
    I know about onlclick .. but I am more interested in knowing .. how will the java script set date into that input text field.. i mean how will it recognize the field..

    Pass the input element as 'this' reference to the JS function?onclick="doSomething(this);"This has not much to do with JSF though.

  • File by File picking with Standard File Adapter with NFS Protocal !!

    Hi Folks,
    How to pick file by file with little gap in a file directory by Standard File Adapter. One interface, one communication channle.
    Ex: XML_XXXXX_XXXX1.xml
          XML_XXXXX_XXXX2.xml
          XML_XXXXX_XXXX3.xml
    First I need to pick one file XM_XXXXX_XXXX1.xml then wait for 2 minutes and pick another one in ascending order.
    I have tried with Advance option "File size" and "Msec to wait before modification check" with 1200000 MS, but no use.
    Please folks any one can help in this, which is very big help?
    Kind Regards
    Many Thanks in advance
    San

    Hi
    My BPM steps are as follows:
    1. Receive step -- Asynch
    2. Transformation -- split the message 
    3. Switch step -- Condition "ID != ' ' from transform message'
    4. In side Switch Branch 1 -- Receiver determination - Receive acknowledgment - Application
    5. Send 1 -- with Application Transport, Queue Name - 'XXX'
          This XXX queue I have configured on ID with EOIO Service
    6. block step - Send multiple messages to same receiver on top
        I have send 2 different message to one receiver, the first message is only one , second message are multiple. I am splitting    with transformation step
    7. Sender -2  no acknowledgement active
    8. stop
    Can you please tell me where I am gonna wrong!!
    I will apprecite for your efforts
    Regards
    San

  • Secondary Index Picked with one field short in select query

    Hi,
    We have a select query as follows
    select  single lgort       vgbel        vgpos
        into   (lips-lgort,lips-vgbel,lips-vgpos)
        from    lips
       where         vbeln          Eq p_zlcpp-vbeln
         and         matnr          Eq p_zlcpp-matnr
         and         charg          Eq p_zlcpp-charg
    The secondary index ZB has the fields as follows:
    MANDT     Client
    MATNR     Material Number
    CHARG     Batch Number
    BWART     Movement Type (Inventory Management)
    When seen in the trace it seems the select query picks this secondary index. Whether it is correct? since i find no BWART in the select query. Because of this index the query take large time. I used the Hint statement as follows:
    select  single lgort       vgbel        vgpos
        into   (lips-lgort,lips-vgbel,lips-vgpos)
        from    lips
       where         vbeln          Eq p_zlcpp-vbeln
         and         matnr          Eq p_zlcpp-matnr
         and         charg          Eq p_zlcpp-charg   %_HINTS ORACLE 'INDEX("LIPS" "LIPS~0")' .
    and it now works fast. Please advice the best way to make the select query work on itself without using the hint statement to pick the index LIPS~0 instead of the invalid secondary index ZB.
    Thanks & Regards,
    Selvakumar M.
    Edited by: Selva on Jun 17, 2011 7:35 PM

    Hello Selva,
    your problem here is the decision of the optimizer that does not exactly know the selectivity of the fields.
    If your deliveries are normally small (not too many items), then selecting via the document number will be relatively fast.
    And selecting via the material number + batch will be slow in case if many deliveries are having same product from the same batch delivered.
    I assume that the latest is the case in your system. That's why the selection with ZB index is slow.
    If the data distribution is as I described above, then your hint is quite OK and I advise you to stick to the hint.
    From my PoV this is the better solution rather changing the coding and throwing out MATNR field from the WHERE clause to filter later in ABAP.
    Another solution would be trying to play with histograms. But you'll need %SUBSTITUTE VALUES% or %SUBSTITUTE LITERALS% hint anyway, so I find your solution better.
    So, please stay with hint. Even SAP standard development does it for some select statements.
    Regards,
      Yuri

  • Can you add People Picker with multiple values to Word Document using Quick Parts?

    Hi all, I've been trying to develop a form in Word that takes a bunch of metadata from the SharePoint library. Most of it works okay, but when I try to add any fields that have been set up to take multiple entries in a people picker, they don't show up
    in the add quick parts list. Any ideas, or is this a limitation?

    Hi NREL,
    According to your description, my understanding is that the people picker column with multiple values was missing in Word Quick Parts.
    This is by design that we are unable to use the fields which is allowed multiple selections.
    As a workaround, you can use a text field(Single line of text) to store the multiple values of the people column. When you create a document, start a workflow to update the text field using the values of the people column, then use the
     text field in Word Quick Parts.
    You can do as the followings:
    Open your library, and create a new column using Single line of text.
    Open your site with SharePoint 2010 Designer, create a workflow based on your library.
    Add the action “Set Field in CurrenItem”, and set it like the screenshot.
    Set the Start Options is “Start workflow automatically when an item is created”.
    Best Regards,
    Wendy
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Wendy Li
    TechNet Community Support

  • Infopath 2010: How To Seperate Multiple Users Selected In People Picker With A Semicolon

    I've seen several posts on this forum about getting multiple user values in a people picker in Infopath to show up in a Sharepoint List.  Obviously, they merge which isn't all that useful if you want to use that data for a workflow. I followed
    Clayton Cobb's suggestion, and took a look at this blog which uses a
    no code solution, which is what i need. Everything for this blog works for me, but I do not need to use the UserProfile web service.
    I'm coming up just short though. I can successful select multiple users in my people picker, and as I do that, the text box populates itself separated by semicolons, but the same AccountId is repeated (of the 1st person selected in the people picker) instead
    of the unique value of each user.
    Here is my current result, with data fields shown
    Here is the result I would like to see. This way the text box gets upload into Sharepoint so I can use it in other places.
    Can someone please help me?  I'm very close.  Here is my function on the text box:
    eval(eval(Person, 'concat(/my:myFields/my:PersonTraveling/pc:Person/pc:AccountId, "; ")'), "..")
    XPath (advanced):
    xdMath:Eval(xdMath:Eval(/my:myFields/my:PersonTraveling/pc:Person, 'concat(/my:myFields/my:PersonTraveling/pc:Person/pc:AccountId, "; ")'), "..")

    Hi methitical,
    Please change your XPath (advanced) to
    xdMath:Eval(xdMath:Eval(/my:myFields/my:PersonTraveling/pc:Person, 'concat(pc:AccountId, "; ")'), "..")
    to make it work.
    Thanks & Regards,
    Emir
    Emir Liu
    TechNet Community Support

Maybe you are looking for