Inventory transfer Discount through DIAPI not working.

Dear Expert,
I try to add a inventory transfer through DIAPI, every field success, except Dicsount Percent. I'm using SAPB12007APL49.
Just a simple code:
oStockTransfer.Lines.DiscountPercent= 3.00
The inventory transfer successful added, BUT without the discount.
Any one have idea on this?
Thanks in advance for any help.

Actually because of the database.... i tried on another Db can add discount.

Similar Messages

  • Backup scheduled through DB13 not working

    Hello,
    We are trying to schedule backup through DB13.But it got failed due to below error.Backup scheduled through DB13 was working fine last week.
    Job started
    Step 001 started (program RSDBAJOB, variant &0000000000174, user ID KHJS199)
    Execute logical command BRARCHIVE On host ppd-ora-ga2
    Parameters:-u / -jid LOG__20100927040000 -c force -p initGA2.sap -sd
    External communication error at program start (see system log)
    SAPXPG_START_XPG_LONG: sy-subrc ne 0
    destination = SAPXPG_DBDEST_PPD-ORA-GA2
    SXPG_STEP_XPG_START: execute_sapxpg: rc = 1.003
    SXPG_STEP_COMMAND_START: SXPG_STEP_XPG_START returned: 1.003
    SXPG_COMMAND_EXECUTE(LONG)
    <timestamp> = 20101014040033
    COMMANDNAME = BRARCHIVE
    ADDITIONAL_PARAMETERS =
    -u / -jid LOG__20100927040000 -c force -p initGA2.
    sap -sd
    LONG_PARAMS
    OPERATINGSYSTEM = ANYOS
    TARGETSYSTEM = ppd-ora-ga2
    DESTINATION = SAPXPG_DBDEST_PPD-ORA-GA2
    SY-SUBRC = 1003
    SXPG_COMMAND_EXECUTE failed for BRARCHIVE - Reason: program_start_error: For More Information, See SYS
    Job cancelled after system exception ERROR_MESSAGE
    We checked the RFC connection SAPXPG_DBDEST_PPD-ORA-GA2 and it is not working.
    For target host and gateway host,we have maintained their corresponding virtual host.
    Gateway is already installed on the server.
    Could you please help me out on this.
    Thanks,
    Gopi L

    Hello,
    Just to add some more information.
    We have 3 servers, X(Database + CI),Y(Dialog instance),Z(Dialog Instance).
    Server  X is the primary node and Y is the failover node.
    Gateway is already installed on Database server and I can verify it by giving ps -aef | grep gwrd.
    Thanks,
    Gopi L

  • Trying to do 6.3 raw update for CS5 through Bridge not working

    Been trying to update 6.3 raw for CS5 through Bridge and a pop up window says I am not the administrator for my computer.  I sign in as the admin still does not work.  I have tried installing in manual mode no luck either.

    If you are working on Windows OS, then try to run the patch executable in Admin mode using "RunAsAdministrator" option in the right click context menu.

  • Invoicing party display made through OMRMB not working

    Dear Experts,
    We have made the field RBKP-LIFNR invoicing party display only through OMRMB, but it is not working when you running MIRO.
    The field is still input only and the invoicing party can be changed at MIRO, what could be reason of not working.
    Client wants that field to be display only in MIRO.
    rgds

    is there any way if I can attach or modify one existing screen variant to standard transaction miro...since I do not want to change the tcode, this I have asked since omrmb is not working so only transaction variant is the way..
    Kindly suggest.
    rgds

  • Drill Through does not work if clicked from email attachment

    Hello,
    Drill through when clicked from the report attached in the email, takes me to the home folder in the Report Server. That's the <URL Root> setup in the Reporting Services. I checked the solutions, but those don't work for me. One of them said to use
    'Go To URL' in the 'Action' property of the text box, but JavaScript is not recognized when I tried to enter '="javascript:void(window.open('http://.........."  Please help.
    Thanks,
    jkrish

    Hi jkrish,
    Based on your description, are experiencing the issue when you  click in the report which will  link you to the home folder of the Report Server and the report was attached to an email, You adding the URL like this: ="javascript:void(window.open('http://..........”)" 
    which doesn’t work in the email’s report, right?
    I have tested on my local environment and can reproduce your problem in the email’s report, but it is fine in the report server ,the problem due to the JavaScript protocol can work only with an exact page. So, when you try to open an blank page to enter
    the URL it will not work.
    You can find more details steps to check the issue:
    Open a blank Internet Explorer, type the following URL in the address box:
    javascript:void(window.open('http://www.microsoft.com', '_blank'))
    The URL can’t work fine.
    Open a page such as :www.microsoft.com, and then replace the URL with the following URL:
    javascript:void(window.open('http://www.microsoft.com', '_blank')
    At this time, the Internet Explorer will open the home page of Microsoft.com in a new window. It means we can use the URL in Reporting Service well but can’t work in the email attached report.
    If your SQL Server version is 2008 R2 or Higher you can Using this expressions in the “GO To URL”:
    Expression: =IIF(Globals!RenderFormat.IsInteractive = true, "javascript:void(window.open('http://www.microsoft.com', '_blank'))", "http://www.microsoft.com")
    This mean if you run the report in Report Server and click the link, you will open the URL using : "javascript:void(window.open('http://www.microsoft.com', '_blank'))",otherwise it will using this URL: "http://www.microsoft.com")
    If the version is lower than 2008 R2 and will not support the “RenderFormat.IsInteractive = ”, you can add directly the URL (Example:=”Http://<ServerName>/ReportServer” ) in the “Go To URL” to make it work fine in the email attached report.
    Similar thread for your reference:
    SSRS 2005 Jump to URL javascript:void window.open fails in
    Excel 2003
    If you still have any question, please feel free to ask.
    Regards
    Vicky Liu

  • 1KEK Transfer payables/receivables does not work

    Hello all,
    The 1KEK report does not work. Though it says "data was copied from co code" it does not reflect in the PCA reports. Nor does it show any log. No document is created.
    Are there any config settings to make this happen ?
    We have new GL but documnet split is not activated and we don't want to. We want to use classic PCA to derive Balance sheet.
    Thanks
    Sandeep

    Dear Sandeep,
    Did you execute transaction F.5D. If NO then execute.

  • Transfer functions imported from Simulink through MIT not working in Labview

    Hi,
    I am just starting to use Labview interface with Simulink using Model Interface Toolkit (MIT). I am trying to import an integrater model from simulink. The model is very simple. An input port connected to an output port through an integrator model (1/s). Here are the steps I used:
    1. Build the model in Simulink.
    2. Add the NI input-output ports to the model and place the NIVeriStandSignal Probe in the model.
    3. Generate the dll using NiVeriStand.tlc as the target file option.
    4. Import that dll into Labview using Load Model.vi. Follow the steps given in the example file for importing the input/ output ports info along with the timing info.
    5. Then use a numeric control to input value to the integrator dll and pass the output from dll to a waveform chart.
    But when I run the labview VI, the output in the chart is always zero. What could be the possible reason? Please let me know if I am making any mistake in the process?
    I have used Fixed time step with ode4 (Runge-Kutta) as the solver options in Simulink during dll generation. I am using Labview 2014 and Matlab R2014a.
    I have found the issue to occur only when I use any transfer functions or Plecs circuit with inductors or capacitors in my Simulink model. But when I use simulink model with only constant or maths functions like add, subtract etc, this process works and gives me the correct result in Labview.
    Any help would be appreciated.
    Thanks.

    Hello Sachin_Madhu,
    Can you build example programs with a solver included? Does the model work in The MathWorks, Inc. Simulink® Software without tying into LabVIEW? It is important that when you built the model you followed the four steps listed in this help file:
    http://zone.ni.com/reference/en-XX/help/374160A-01​/vsmithelp/mit_convert_model_to_dll/
    MATLAB®, Simulink®, and Real-Time Workshop® are registered trademarks of The MathWorks, Inc. Other product and company names listed are trademarks and trade names of their respective companies.
    Siana A.
    Application Engineering
    National Instruments

  • After having SSO user password through url not working

    Hi guys,
    We have an Institutional portal and BW portal to publish reports. Before the SSO was configured we had some UrlIViews where we fixed a user and password through the url, ie:
      http://myportal.net:50400/irj/servlet/prt/portal/prtroot/pcd!3aportal_content!2fcom.sap.pct!2fplatform_add_ons!2fcom.sap.ip.bi!2fiViews!2fcom.sap.ip.bi.bex?TEMPLATE=TMP01&sap-client=200&j_user=user1&j_password=pwd1
    It worked fine.
    Recently SSO (with SapLogonTickets) has been configured between the two portals.
    I have my same user on both servers and SSO its working, even though the URL sends another user, I log on to the bw portal as my own user.
    Some people do not have a BW user, so when they click the url, a login is presented with a default user (user1) and password in blank ready for input. I guess because it couldnt do a SSO.  The problem is that if they introduce the password(pwd1), or even if they change for another valid username and password, the portal rejects all attempts to log in.  Such as if tried to log in with an non existing user (using the SSO). 
    Is there a way override SSO when there is no user, such as it is working in the same portal but with BW R3?
    Thanks,
    help will be aprecciated
    DGF
    Edited by: David Guerra Farias on Apr 8, 2008 7:30 PM
    Edited by: David Guerra Farias on Apr 8, 2008 7:31 PM

    Hi Benjamin,
    I have not solved it yet as I'm delving into Flash Remoting to BC4J issues. ARRRRGGGGG!
    However, I'm thinking that there may be a solution using "mod-rewrite processing" within the httpd.conf file. If I can use Regular Expressions to change the "case" in mod-rewrite then I can probably fix it. Have to dust-off my Apache Docs.
    http://httpd.apache.org/docs/misc/rewriteguide.html
    BG...

  • Transfer Function Block Component not working properly

    When using a Transfer Function Block, and you enter in the polynomial coefficients for a simple RC Passive Low-Pass Circuit, and perform an AC analysis side-by-side to its circuit equivalent, it works great.  The 2 frequency response waveforms are identical.  However, when you add another RC Low-Pass section in cascade with the 1st one, making it a 2-pole RC Passive Low-Pass Circuit, and you put its polynomial coefficients into the transfer function block the results of the AC Frequency Response is not identical to its 2-pole circuit equivalent.  I double checked my math to make sure my transfer function math was correct.  Since 2 transfer functions are in cascade, the transfer function from the 1st RC stage is multiplied times the transfer function of the 2nd RC stage, and the result is the overall transfer function.  I even went as far as creating 2 transfer function blocks, each of them, with a single RC transfer function and connecting them in a cascade fashion.  The results were the same....the trasnfer function block(s) do not resemble their circuit equivalent models for a >=2pole Passive RC Low-Pass filter.

    The transfer function of a RC ist not retroactively-free, this is the reason why the transfer function of 2 RC Circuits is not 1 / (1 + RC*s)^2 ! You can not multiply the one function of one RC with the other!
    You have to solve the differential equation of the RC circuits, to get the real transfer function.

  • Drill Through report not working for large data

    Hi,
    In SSRS 2008 R2, I have a main report and a drill through report from one of the main report's column. The drill through report works mostly except if the data is too large i.e. more than 1 million records. How to fix this problem?
    Thanks,
    Jkrishna

    Nope. WHat I meant was not to show the entire data in child report (ie your 1 million records). Instead add extra parameter as PageNumber. By default set it as 1 when you navigate to child report (default value)
    Then in query behind use a ROW_NUMBER based logic like below
    SELECT *
    FROM
    SELEC ROW_NUMBER() OVER (ORDER BY <combination of unique valued column(s)>) AS Rn,...
    Your existing query other columns
    )t
    WHERE Rn BETWEEN ((@PageNo-1) * 1000) + 1 AND @PageNo * 1000
    Assuming you want 1000 per page
    So when it renders it will show first 1000 records. Add a NextPage icon to report footer and when clicked add a jump to report functionality to same report but with PageNumber parameter value as
    =Parameters!PageNumber.Value + 1
    and it will then give you second page data etc 
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • Granting privilege through role not working for PL/SQL

    Version: 11.2.0.2
    In our shop, we don't grant privileges directly to a user, we grant it to a role and grant that role to the intended grantee.
    Granting privileges through a role seems to be fine with SQL Engine. But it doesn't work from PL/SQL engine.
    In the below example GLS_DEV user is granted SELECT access on SCOTT.pets table through a role called tstrole. GLS_DEV can select this table from SQL. But PL/SQL Engine doesn't seem to know this.
    Reproducing the issue:
    SQL> show user
    USER is "SCOTT"
    SQL> select * from pets;
    NAME
    PLUTO
    SQL> conn / as sysdba
    Connected.
    SQL> create user GLS_DEV identified by test1234 default tablespace TSTDATA;
    User created.
    SQL> alter user GLS_DEV quota 25m on TSTDATA;
    User altered.
    SQL> grant create session, resource to GLS_DEV;
    Grant succeeded.
    --- Granting SELECT privilege on scott.pets to tstrole and then grant this role to GLS_DEV.
    SQL> conn / as sysdba
    Connected.
    SQL>
    SQL> create role tstrole;
    Role created.
    SQL> grant select on scott.pets to tstrole;
    Grant succeeded.
    SQL> grant tstrole to GLS_DEV;
    Grant succeeded.
    SQL> conn GLS_DEV/test1234
    Connected.
    SQL>
    SQL> select * From scott.pets;
    NAME
    PLUTO
    ---- All fine till here. From SQL engine , GLS_DEV user can SELECT scott.pets table.
    --- Now , I am going to create a PL/SQL object in GLS_DEV which tries to refer scott.pets
    SQL> show user
    USER is "GLS_DEV"
    create or replace procedure my_proc
    is
    myvariable varchar2(35);
    begin
         select name into myvariable from scott.pets ;
         dbms_output.put_line(myvariable);
    end my_proc;
    Warning: Procedure created with compilation errors.
    SQL> show errors
    Errors for PROCEDURE MY_PROC:
    LINE/COL ERROR
    6/2      PL/SQL: SQL Statement ignored
    6/41     PL/SQL: ORA-01031: insufficient privileges
    SQL>
    SQL> 6
      6*    select name into myvariable from scott.pets ;
    --- PL/SQL Engine doesn't seem to know that GLS_DEV has select privilege on scott.pets indirectly granted through a role
    --- Fix
    --- Instead of granting privilege through a role, I am granting the SELECT privilege on scott.pets to GLS_DEV directly.
    --- The error goes away, I can compile and execute the procedure !!
    SQL> conn / as sysdba
    Connected.
    SQL>
    SQL> grant select on scott.pets to GLS_DEV;
    Grant succeeded.
    SQL> conn GLS_DEV/test1234
    Connected.
    SQL>
    SQL> create or replace procedure my_proc
    is
    myvariable varchar2(35);
    begin
            select name into myvariable from scott.pets ;
            dbms_output.put_line(myvariable);
    end my_proc;  2    3    4    5    6    7    8    9   10
    11  /
    Procedure created.
    SQL> set serveroutput on
    SQL> exec my_proc;
    PLUTO
    PL/SQL procedure successfully completed.Has anyone encountered the same issue ?

    You really should start your own new thread for this question instead of resurrecting an old one, but to answer your question.
    There are two things going on here. First, there are a number of aler session commands that can be used by any user regardless of what privileges they are granted. Although I do not have the entire list at hand, things like nls_date_format and current_schema are available to all users, sort of like the grants to public in the data dictionary.
    Second, when you use execute immediate, the PL/SQL engine never really sees the statement, as far as the compiler is concerned it is just a string. It is only when the string is passed to the sql engine that permissions are checked, and there roles are not enabled.
    SQL> create role t_role;
    Role created.
    SQL> grant select on ops$oracle.t to t_role;
    Grant succeeded.
    SQL> create user a identified by a default tablespace users;
    User created.
    SQL> grant create session, create procedure to a;
    Grant succeeded.
    SQL> grant t_role to a;
    Grant succeeded.
    SQL> connect a/a
    Connected.
    SQL> select * from ops$oracle.t;
            ID DESCR
             1 One
             1 Un
    SQL> create function f (p_descr in varchar2) return number as
      2     l_num number;
      3  begin
      4     select id into l_num
      5     from ops$oracle.t
      6     where descr = p_descr;
      7     return l_num;
      8  end;
      9  /
    Warning: Function created with compilation errors.
    SQL> show error
    Errors for FUNCTION F:
    LINE/COL ERROR
    4/4      PL/SQL: SQL Statement ignored
    5/20     PL/SQL: ORA-00942: table or view does not exist
    SQL> create or replace function f (p_descr in varchar2) return number as
      2     l_num number;
      3  begin
      4     execute immediate 'select id from ops$oracle.t where descr = :b1'
      5                       into l_num using p_descr;
      6     return l_num;
      7  end;
      8  /
    Function created.
    SQL> select f('One') from dual;
    select f('One') from dual
    ERROR at line 1:
    ORA-00942: table or view does not exist
    ORA-06512: at "A.F", line 4John

  • Stock Transfer Discount via DIAPI

    Dear Expert,
    I want to add Stock Transfer via DIAPI. The Stock Transfer successful added but without discount. How can I add Stock Transfer via DIAPI with Discount value?
    Thanks for any help.

    This is my code, just simple only... but discount become blank. How to add stock transfer with discount? Others fields can add successfully, except the discount column.
    Dim lRetCode As Long
            Dim lErrCode As Long
            Dim sErrMsg As String
            Dim oTransfer As SAPbobsCOM.StockTransfer
            oTransfer = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oStockTransfer)
            oTransfer.FromWarehouse = "01"
            oTransfer.Lines.ItemCode = "AT010"
            oTransfer.Lines.WarehouseCode = "04"
            oTransfer.Lines.Quantity = 1
            oTransfer.Lines.Price = 10
            oTransfer.Lines.DiscountPercent = 9
            lRetCode = oTransfer.Add
            If lRetCode <> 0 Then
                oCompany.GetLastError(lErrCode, sErrMsg)
                SBO_Application.MessageBox(lErrCode & " - " & sErrMsg)
            Else
                SBO_Application.MessageBox("successful")
            End If

  • Custom Auto Attendant Prompts through TUI not working for users who migrated from 2010 to 2013

    In Exchange 2010, we started using unified messaging and set up Auto Attendants. We setup a admin role/RBAC for people of a security group to be able to update the message on the auto attendants. They have the UMPrompts assigned role. All of this is working
    great in 2010. We have now migrated to 2013, and the users who were migrated from 2010 to 2013 can no longer update the messages through TUI. Newly created 2013 users can and are assigned the EXASCT same permission as the users who have been doing this for
    well over a year on 2010.  When they call the AA and press #,* they are asked to provide their extension, after doing so the system tells them that extension is not correct. and asks for the extension again.  Newly created users with the same permissions
    get prompted for their PIN and can log in and change the message just fine. 
    Confirmed Bug?  anybody else having this issue?
    What would be different for this process between a user who was migrated from a previous version like 2010 compared to a newer user who has only ever existed on 2013?

    What if the migrated 2010 users are in the same DB as the system mailbox? I had a similar issue during a migration; http://www.skypeadmin.com/2014/11/10/known-issue-um-automated-attendant-tui-editing-broken-migration/
    Please remember, if you see a post that helped you please click "Vote As Helpful" and if it answered your question please click "Mark As Answer".
    SWC Unified Communications
    This forum post is based upon my personal experience and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs.

  • How to transfer files from old not-working iPod to new one?

    i've got a 4th gen U2 iPod that has "died." replaced battery, still doesn't work. i keep getting either a sad face symbol or low battery (but not charging). don't know what's wrong or what to do. if i buy a new iPod, can i transfer my old music to it??

    The Migration Assistant utility that is included with all recent versions of OS X. Instructions can be found in the OS X Help.

  • Long videos not playing through, favorites not working

    Hello,
    I was enjoying viewing the new CS5 features on the Adobe Media Player application but as I got to presentations that were longer in length (over 4 or 5 minutes), they would just stop about 2-3 minutes in. No matter what I did...restart the program, or allow the video to download longer, they won't run all the way through. The progress bar shows still moves forward as if the movie is still playing, but the sound is off and the motion is stopped. I have updated everything that I can..I have the latest AIR as well. Any suggestions?
    Also, every video I click to view, it claims that it has been added to my favorite and I can only remove it from my Favorites. When I go to my Favorites, those movies are not there. I remove it and select it again, hoping it will be added to my favorites, but it is not. This after it allowing me to add one to my favorites, but wouldn't allow me to enter others.
    This is a great venue for learning the new features, but it sure would be nice if it worked better.
    Any suggestions would be appreciated or an acknowlegment of the problems and if anyone is going to fix it.
    Thank you!

    I am having the same problem, it started after the last AIR update.

Maybe you are looking for

  • How can I delete a app from the Mac App Store completely?

    I have a apllication which had a error. I delete it and download the app from the Mac App Store again, but the error wasn't delete. My iMac had stored it and the Error wasn't deleted so I can't youse the app. What can I do to delete the app complete?

  • SAPSQL_ARRAY_INSERT_DUPREC" "CX_SY_OPEN_SQL_DB in VA02

    Hi Experts,               I have an issue when tried to update the reason for rejection for a particular line item. When updated the reason for rejection..and press save  ,system prompts to select the schedule line, when it is selected...program says

  • Going on week FOUR of problems with MSI NEO-2-S :/

    Mainboard: MSI Neo2-S, BIOS Rev. 1.5x (whatever Live Update sent me) RAM: GeiL 1GB (512x2) PC-3500 Matched pairs CPU: P4-2.4c HD: WD 1200JB Special edition Cooling: Stock intel, lapped @ 800 grit PSU: 450W Video: MSI Geforce 4 TI-4200 64MB O/S: Windo

  • Tables not in Query Builder table list bug?

    In HTML DB version 1.6.0.00.87 we have tables defined in our schema in our workspace. When we create a view and click on the [Query Builder] link, no tables are in the drop down list for our schema. Why? The schema is there. I can go into the SQL Wor

  • Not display views/tables on DB connect source system

    Dear Experts, After creating a oracle DB connect source system, I want to create data sources based on oracle db. But it is not showing any view/table. Connection is up and running. Please advice. Thanks, Thilini