How to use BAPI_INSPLOT_SETUSAGEDECISION to do just only stock transfer

I have requirement to do stock transfer from UI to Unrestricted use status but don't need to do usage decision.
After checking, this BAPI has UD_STOCK_POSTING field to do inventory posting, but seem like it doesn't support
to do stock transfer just some part of quantity to be posted. (No fields to input)
But after testing, it cound not do stock transfer successfully, eventhough field UD_STOCK_POSTING was flaged already.
Would you please me check what is wrong in my source code? Appreciated in your help/suggest.
Prepare internal table
I_NUMBER = 50000000223.
T_UD_DATA-INSPLOT = 50000000223.
T_UD_DATA-UD_PLANT = '0V07'.
T_UD_DATA-UD_RECORDED_BY_USER = 'TAPINYA'.
T_UD_DATA-UD_RECORDED_ON_DATE = sy-datum.
T_UD_DATA-UD_RECORDED_AT_TIME = sy-uzeit.
T_UD_DATA-UD_STOCK_POSTING = 'X'.
APPEND T_UD_DATA.
Call BAPI function
CALL FUNCTION 'BAPI_INSPLOT_SETUSAGEDECISION'
EXPORTING
NUMBER = I_NUMBER
UD_DATA = T_UD_DATA
IMPORTING
UD_RETURN_DATA = T_UD_RETURN_DATA
STOCK_DATA = T_STOCK_DATA
RETURN = T_RETURN
TABLES
SYSTEM_STATUS = T_SYSTEM
USER_STATUS = T_USER.
Commit BAPI transaction
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
In sum up,
- What's wrong for using this BAPI?
- Is it possible to just do stock transfer, no need to do usage decision.
- Is it possible to specify the number of stock to be posted (In unrestricted use field)
or this BAPI just supports to do transfer all stocks in each time?
- Due to ECC6, if you don't post the complete quantity of the inspection lot.
In transaction, you have to assign serial number to be transfered as well.
Therefore, this BAPI also supports this situation? or please advice me if you have any experiences or idea.
Thank you very much.

Hi,
You can set a usage decision to 'Accept' the stock and the move the stock to the unrestricted use. 
Alternatively you can do manual posting of stock.
Regards,
Arun

Similar Messages

  • How to create an Internal Customer  for Ineterplant stock Transfer

    Daer Gurus,
    Please tell me how to create an Internal Customer for Interplant stock transfer.
    Actually I have three plants out of them two plants are providing goods to third plant. Also both the plants do the stock transfer in eachother.
    How to maintain the Two plants as supplier and third one as a receiver plant. 
    which account group I should use and what details I have to use for it ?  Do I need to maintain all three plants under same account group? I know the theoratical process only for stock transfer please guide me on this Internal customer issue.
    thanks in advance
    regards,
    Sanjay

    Hi,
    Take your three plants as AAAA, BBBB and CCCC.... and these 3 plants may be assigned to the Sales Area of AAA 10 10, BBB 10 10 and CCC 10 10.
    Your STO will have following 4 flows.
    1. AAAA - CCCC
    2. AAAA - BBBB
    3. BBBB- CCCC
    4. BBBB- AAAA
    you need to do the following settings...
    1. Assign the Sales Area for the Shipping Plants... for ex (AAAA - AAA 10 10 and BBBB - BBB 10 10)
    2. You need to Create a Internal Customer for every Rec. Plant and need to assign the same to the Rec Plant. And Also note that this customer needs to be created in the Sales Area which is assigned in the Shipping Plant.
    (Note that CCCC will be Rec Plant from Both AAAA and BBBB... So you need to extend that customer for both the Sales Area of the plants AAAA and BBBB)
    Following is the example settings required for our scenario 1.
    AAAA will be a supplying plant and CCCC will be rec. plant....  for this you need to create a internal Customer (for ex C1000) in Sales area AAA 10 10 (which is assigned to the plant AAAA) and assign the Customer number (C1000) to Plant CCCC.
    Now you created a plant CCCC as a customer in Sales Area AAA 10 10 (which is nothing but plant AAAA)...
    Also here you need assign the Sales Area AAA 10 10 to the Plant AAAA.
    Hope this will be useful to you.
    Thanks,
    Muthu

  • Only stock transfer requisition in ATP for a sales order

    Dear all,
    I need to modify  the available check result in a sales order.
    In customizing for availabity check 02 and checking rule A I set the flag "Incl. purchase requisitions".
    But during availability check the system considers both stock transfer requisition and purchase requisition.
    I need that the system takes into account only stock transfer requisition.
    Could you help me?  
    Kindest regards
    Flavia

    Hi Flavia,
    Please set the parameter value for following
    Incl.rel.order reqs = X in OPJJ transaction code for 02 and A combination and uncheck "Incl. purchase requisitions".
    Hope this will resolve.
    If it is helpful please award points.
    Bye,
    Subramanyam.B

  • How to use template to print just 1 photo onto CD or DVD?

    I know that PSE 11 has a template that allows you to prepare a picture directly onto a CD od DVD.  The templates are much too complicated for what I need.  How do I get to place just one picture & move it a little if necessary?
    Thanks in advance

    Are you trying to create a CD/DVD jacket?
    You may delete the extra frames (select the layer and hit delete) and just have one for this picture.
    Thanks
    Andaleeb

  • How to use a second computer just to listen to iPod?

    I want to use my computer at work to listen to the music on my Nano, not to manage it. My personal laptop is the Nano's "home" computer. I have iTunes installed on my work computer, but I don't want to transfer my Nano contents to that computer. I just want to use the work computer as a pass-though device to its speakers so I can listen to the music on iPod at the office. Is this possible?
    When the Nano is plugged into the computer, I can't see what's stored on the Nano, but the songs will play--in alphabetical order only. Since I can't "see" what's on the Nano via the computer (and Nano's own screen goes to "Do Not Disconnect" when plugged in), I can only scroll through songs blindly using the "next" control in iTunes.
    Is there a way to see my playlists and all Nano contents via the computer, without transferring anything to the computer itself? The IT guys will smack me silly if I have a music library on the work computer. I can't afford to buy a separate audio device (i.e., Bose speaker dock, etc.), and since my computer already has great speakers, it would seem redundant to buy a stand-alone speaker thingy just for the iPod.
    Am I asking for the impossible?

    You have two choices: First, install iTunes on the
    computer at work. Then set your iPod to manually
    manage and connect it to the computer. It will show
    up in iTunes and you'll be able to play the songs
    that are on the iPod.
    iTunes was installed first, well, second after I saw that WMP wouldn't work with the iPod. I selected "Manually manage," but that doesn't solve the problem. When in iTunes, the Nano shows up as a device over on the left side of the screen, but no matter where I click or what I try, it won't show me the contents of the Nano. If I click on the "play" button in iTunes, the music plays, but as I said earlier, songs are in ABC order. I have to just keep clicking the forward button to get to a song I want. I have over 3 gigs of music loaded on the Nano--that's a lot of blind scrolling!
    Second, buy a pair of speakers
    for the iPod.
    See my first post. No money!

  • How to use ip 4 as ipod only  with phone operating

    When on holiday in foreign country  i only want to use the ipod / on the phone  .  Is there a way to do this   thankyou for your help  John

    To add, you can actually enable airplane mode, then go into your wifi settings and turn on just wifi data.  That way all the telephone functions are disabled (no calls or SMS texts, and no cellular data possible), but you can still use free public wifi hotspots when available.

  • How to use a pdf file just like a jsp file?

    Hi! My question is quite simple, I was wondering if it is possible to use PDF files as if they were html forms and post the data to a servlet with PDFBox? I read the spec and it seems that PDFBox is meant to treat local pdf files, am I right?
    I guess what I will have to do is save the pdf file once the user has finished entering data in it with a unique file name, and then treat the local pdf file with PDFBox... Is that the way to go or is there an other way to use pdf forms just like an html forms and then treat the data in a servlet?
    Thanks!

    Cross-post
    http://forum.java.sun.com/thread.jspa?threadID=617229

  • How to use the rownum to get only 5 records?

    Hello Folks,
    I have this queury which pulls in the CLient,EventStatus along with the Events for each user. I just want to condense the data so that each user has not more than 5 events.
    select c.client_code "Client Code",
           c.client_name "Client Name",
           e.event_id "Event ID",             -- there can be 5 or more events per user  
      e.event_status_code "Event Status",
           al.end_user_id "User ID",
           eu.user_real_name "User Name"  -- user    
    al.activity_date "Activity Date",
           al.activity_log_type_code "Activity Type",
           al.activity_party "Activity Party",
           al.activity_subject "Activity Subject",
           al.activity_source "Activity Source",
           al.activity_text "Activity Text",
           e.created_date "Event Created Date"
      from budget b, activity_log al, client c, event e, end_user eu, profile_lookup pl, event_case ec
    where b.event_case_id = al.event_case_id
       and e.event_id = ec.event_id
       and al.event_case_id = ec.event_case_id
       and e.client_id = c.client_id
       and al.end_user_id = eu.end_user_id
       and eu.profile_id = pl.profile_id
       and al.activity_source <> 'SYS'
       and al.activity_log_type_code not in ('MAIL PRINT')
       and (
       (al.activity_log_type_code <> 'PROJECTION')
       or
       (al.activity_log_type_code = 'PROJECTION'and b.budget_status <> 'APPROVED')
       and pl.profile_name like 'NEGOTIATOR%'
       and al.activity_date >= to_date('20101123 000000', 'YYYYMMDD HH24MISS')
       and al.activity_date <= to_date('20101123 235959', 'YYYYMMDD HH24MISS')
    sample data:
    647     IL-FEP     BLUE CROSS BLUE SHIELD OF ILLINOIS     219678     OPEN     867     AARON HILTON     11/23/2010 2:12:44 PM     FAX SENT     SAUL FERRIS     Confirmation of Settlement Amo     MAIL     "Fax of Confirmation of Settlement Amount sent to SAUL FERRIS FAILED.
    Details :
    "     7/11/2009 7:26:45 PMEdited by: user11961230 on Nov 24, 2010 8:11 AM
    Edited by: user11961230 on Nov 24, 2010 8:11 AM
    Edited by: user11961230 on Nov 24, 2010 8:12 AM
    Edited by: user11961230 on Nov 24, 2010 8:18 AM
    Edited by: user11961230 on Nov 24, 2010 8:19 AM

    user11961230 wrote:
    ORA-00923: FROM Keyword not found where expected
    Issue is your original query had not equal condition as &#60;&#62; in two places Since &#60;&#62; has special meaning (empty tag) in HTML, they disappeared. I fixed it in one spot with using != instead but missed the othe. Anyway:
    select  "Client Code",
            "Client Name",
            "Event ID",
            "Event Status",
            "User ID",
            "User Name"    
            "Activity Date",
            "Activity Type",
            "Activity Party",
            "Activity Subject",
            "Activity Source",
            "Activity Text",
            "Event Created Date"
      from  (
             select c.client_code "Client Code",
                    c.client_name "Client Name",
                    e.event_id "Event ID", 
                    e.event_status_code "Event Status",
                    al.end_user_id "User ID",
                    eu.user_real_name "User Name"    
                    al.activity_date "Activity Date",
                    al.activity_log_type_code "Activity Type",
                    al.activity_party "Activity Party",
                    al.activity_subject "Activity Subject",
                    al.activity_source "Activity Source",
                    al.activity_text "Activity Text",
                    e.created_date "Event Created Date",
                    row_number() over(partition by al.end_user_id order by e.event_id) rn
              from  budget b,
                    activity_log al,
                    client c,
                    event e,
                    end_user eu,
                    profile_lookup pl,
                    event_case ec
              where b.event_case_id = al.event_case_id
                and e.event_id = ec.event_id
                and al.event_case_id = ec.event_case_id
                and e.client_id = c.client_id
                and al.end_user_id = eu.end_user_id
                and eu.profile_id = pl.profile_id
                and al.activity_source != 'SYS'
                and al.activity_log_type_code not in ('MAIL PRINT')
                and (
                        (al.activity_log_type_code  'PROJECTION')
                     or
                        (al.activity_log_type_code = 'PROJECTION'and b.budget_status != 'APPROVED')
                and pl.profile_name like 'NEGOTIATOR%'
                and al.activity_date >= to_date('20101123 000000', 'YYYYMMDD HH24MISS')
                and al.activity_date <= to_date('20101123 235959', 'YYYYMMDD HH24MISS')
      where rn <= 5
    / SY.

  • How to use JavaScript on a read-only textField

    Hi,
    is it possible to use JavaScript in conjunction with a read-only text field?
    When I tried to set a text in the read-only field "textField1" (see below), it didn't work (but worked with a non-read-only field):
    document.getElementById(form1:textField1).value = "Hello!";Thanks and regards,
    Felix

    Probem solved:
    I removed the read-only property and made it read-only by JavaScript instead by adding this
    alert("This field is read-only!");to the onClick and onKeyDown methods, respectively.
    Regards,
    Felix

  • How to use a script to kill only forms sessions idle for over 30 minutes?

    We want to use a script to kill forms users idle for over 30 minutes, but we don't want to kill background concurrent processes waiting for resources. even though we set up the timeout but it won't work for users who exit forms ungracefully.
    thanks!

    Java runs at the serverside, while you need a clientside solution. Javascript is perfectly suitable. Pass the current maxInactiveInterval() value to a Javascript variable and write a function around it. You can use for example the onkeypress attribute of the body to clear the timeout counter.

  • [ReWire] How to use Logic's MIDI channels only

    Sorry for the rather vague subject title, but I can't come up with a better one.
    Let me explain the situation:
    I'm working on a project with several audio and MIDI tracks and also two ReWired Reason4 instruments, all routed to their corresponding Reason device. (the MIDI information is coming out of Logic and being routed to Reason and the audio is then routed back into Logic)
    My problem is with Logic's own MIDI channels. When I record enable one of these (Logic) channels and I play my MIDI keyboard, Reason also responds to that and plays one of the instruments.
    So I hear the Logic instrument as well as the Reason instrument. To put it in the easiest way possible, I don't want that.
    Is there a way to make Logic stop sending out MIDI information to it's ReWire slave, when a non-rewire channel is record enabled?
    Thanks in advance for your help

    Hmm that makes perfectly sense... that I haven't thought of that myself
    I will try tonight. Thanks!

  • How to use ale/idocs in sap crm to transfer master and transactional data

    hi all,
    I am working on sap crm7.0 ehp1. I want to transfer my master and transactional data from crm development system to crm quality system here through idocs. I am aware of basic ale settings and successfully transfe the ztable data through idocs. But i am not able to find any proper step by step procedure for maste and transactional data in sap crm. Also sap ecc tcode NACE is not available here.
    pls help..
    regards,
    kavita chaudhary

    Kavita,
    In CRM, Exchange Interface (XIF) ALE/IDOC is available to transfer master and transaction data. You can go through the following link for set up.
    Basic Data exchange set up for ALE IDocs - Wiki - SCN Wiki
    You can extend the standard XIF IDOCs using Transaction BDFg as well.
    Thanks,
    Ravi

  • How to use BWITH(WithHolding Tax) in RFBIBL00?

    HI,
    I am already using RFBIBL00 . Now i have to do the enhancemant and under this WithHolding Tax has to be used. Iread the documentation that BWITh structure has to be used, but iam not getting how to use it.
    Plz help

    Hi
    U should transfer the data of BWITH, just after the data of BBSEG with vendor item:
    Structure data:
      BWITH-STYPE = '2'.
      BWITH-TBNAM = 'BWITH'.
    Withholding tax codes
      BWITH-WITHT           = <WITHT>.
      BWITH-WT_WITHCD = <WT_WITHCD>.
    Base to calculate the Withholding tax value
      WRITE <base amount> CURRENCY BBKPF-WAERK TO BWITH-WT_QSSHB.
    The Withholding tax codes have to picked up from vendor table LFBK, the base amount has to be calculate (it depends on the percentage stored in T059Z):
    <base amount> = <amount> * T059Z-QPROZ / 100
    Max

  • Problem: How to use multiple layers style?

    Hello everyone!
    Sorry if my English isn't fluent.
    Some of photoshop styles have multiple styles icon in style tab that should to use together, I do below steps but it doesn't show effect style as psd file.(in psd file effect style is true but when I do below steps my effect style is not true).
    Steps that I do:
    1. I insert style from preset manager.
    2. I apply first icon style to first layer.
    3. Then I duplicate first layer.
    4. Then I apply second icon style to duplicated layer.
    I do this 4 steps but my effect is not true.
    Download link of style:
    http://fc03.deviantart.net/fs71/f/2012/229/a/6/free_metal_chrome_layer_styles_and_psd_by_g iallo86-d5bhbrn.zip
    You can see below picture:
    please help me!
    Thanks a lot.

    Thanks for getting back to me. My reply may sound lazy, but whoever made these styles should be able to better explain how to use it. It just seems one layer covers the other, and I don't want to guess at the settings.
    Gene

  • Closing a Stock Transfer draft (using Delphi 7)

    Hi, I have this code to close a Stock Transfer draft (ie. using 'Cancel' method):
               with GetBusinessObject(param_type) as IDocuments do begin
                 ok := GetByKey(StrToInt64(param_key));
                 if ok then result := Cancel();
            end;
    Somehow that code gives me an error. By using GetLastErrorDescription(), the error message is:
    "[Microsoft][SQL Native Client][SQL Server]Cannot insert the value NULL into column 'DocEntry', table 'SAP_TEST.dbo.DRF6'; column does not allow nulls. INSERT fails."
    FYI I used this code to close other document drafts (Sales Order Draft, Return Order Draft), and they are all OK, so looks like something is a bit different with Stock Transfer draft.
    Anybody has any idea what's wrong, and how to fix/handle it?
    Thanks.

    Hi,
    Stock Transfer and some other inventory transaction tables share the same structure with other marketing document tables. However, because the general design of the table structure is focus on marketing document part, Stock Transfer transaction will have certain limitations. You need to try more methods to close it.
    Thanks,
    Gordon

Maybe you are looking for

  • Aspect Ratio Problem with Onlining

    Hi, I checked the old posts and couldn't find an answer. I'm using Ken Stone's article to online my project. I followed the instructions except for the point right after the new online file is created and just before you capture footage. He says to c

  • LSMW field with 5 decimal points

    Hi All, I need to pass a field in the LSMW with 5 decimal points. we cannot pass the data type as "PAC5". can any one suggest how this can be done in LSMW. Also, I am passing the currency key as USDN in the LSMW using Idoc method. But it is taking on

  • CS3 Pro upgrade to CS6 standard, both on same Mac

    I have a 17in 2010 MacBook Pro w/ CS3 Pro version on it. I need to upgrade to CS6, standard and run them both on the computer temporarily. My specs are OS X 10.6.8; 2.8GHz Intel core 2 duo proc; Memory is 4GB 1067 MHz DDR3. Can I do this? If not what

  • How to set custom profiles in iphone 5 and viewing sent messsges and dialed calls seperately

    i found that i cannot set any other profiles other than silent and general is there any app to create custom profiles and also i can't view the dialed calls seperately only missed calls can be viewind seperately is there any app to overcome that prob

  • Noise Partially Comes Back in Library View & Exports

    Ok I have a very strange thing happening in LR3.  When I select a very noisy image in my library and take it into develop mode, convert it to 2010 calibration and make the adjustments to noise it looks spectacular.  But when I click to go back to Lib