Problem with BAPI BAPI_MATERIAL_SAVEDATA when calling from other system

Hi All,
I able create new material using the BAPI BAPI_MATERIAL_SAVEDATA in development system.
but when i am calling this BAPI from other systems by passing the same values that i used in the development system . system is giving me an error ( in the return statement) saying that material number doesn't exists .
Can any one have some pointers towards this ?
Thanks & Regards,
Praveen

Hi,
this FM BAPI_MATERIAL_SAVEDATA
is used to extend a material to another plant
for that you need to read the original data via BAPI_MATERIAL_GET_DETAIL and then select additional data from MKVE and save it via BAPI_MATERIAL_SAVEDATA with table parameter SALESDATA
also check with
BAPI_STANDARDMATERIAL_CREATE Create/Extend Material
BAPI_MATERIAL_SAVEDATA - QM - Inspection Setup
Problem in BAPI_MATERIAL_SAVEDATA
Thanks&Regards,
Naresh

Similar Messages

  • Problem with redirect script when calling from external - UCCX

    Hi,
    I have a problem with external calls not being redirected when the call comes from an external that begins with a certain prefix on teh ANI.
    The call path goes PSTN - VGW - UCM SUB - UCCX.
    To give you info this should be redirected to a auto attendant on unity but it just hits the fourth option unsuccessful.
    If i change it to match an internal ANI and test it works.
    What trace and log do i look at to see the call coming in from the UCM and what is happening with it why this is failing when it trys to redirect a call coming from external?
    I have also attached my script.
    Thanks for the help.
    Kev

    Hi Martin Braun,
    Go to GUI status which you set in the PBO of your screen,
    and open "Function Keys" part.
    You should have set function key F4 for a button on your GUI status,
    delete this button and create with another function key again.
    I hope it helps.

  • GUI_DOWNLOAD problems with CR+LF when transfering from unicode system

    Hi,
    I was successfuly used FM GUI_DOWNLOAD in a non-unicode systems for years. Lately I faced a challenge to rewrite my code for a unicode system. The configuration is:
    - SAP R/3 unicode system;
    - data to be downloaded at presentation server in a non-unicode codepage (cp 9504).
    I have successfuly used a GUI_DOWNLOAD-parameter CODEPAGE and the data is translated correctly when checking local file, but due to some reasons CRLF are replaced with '#' (which is default value of REPLACEMENT parameter of this function) - means at the end of each row as a result I have '##' instead of CRLF.
    My question is: how can I force correct behaviour of GUI_DOWNLOAD in order to get my output file at presentation server with CR+LF?
    Any help would be highly appreciated.
    Many thanks in advance.
    Regards,
    Ivaylo Mutafchiev
    SAP/ABAP consultant
    VBS Ltd.
    P.S. In order to find some other way to fix my problem I'm still playing with the instanciation of a CL_ABAP_CONV_OBJ and its methods create & convert, but without success for now - resulted strings are not as expected.

    Hi,
    in fact, I never placed CRLF in my lines before your suggestion. The rest was done by the FM 'GUI_DOWNLOAD'. It works fine even when I use unicode file as output - means I got my CRLF at the end of the record in MY OUTPUT FILE ONLY but not in my internal table - I never placed CR+LF in there.
    The problem occures when I tried to use GUI_DOWNLOAD with parameter CODEPAGE = '9504' (some non-unicode codepage), and the original data (my internal table) is in unicode. Then (in my opinion) this function doesn't translate the unicoded CR+LF into non-unicode ones (if thats possible at all, I can't be sure) and the result is '##' in the output file.
    I checked the value of CL_ABAP_CHAR_UTILITIES=>CR_LF by getting it in my variable - and it is '##'.
    Whet should I put into this class-attribute in order to get it working in this scenario? I have no idea...
    The attribute type is ABAP_CR_LF - which is char 2.
    What next?
    Thanks,
    Ivaylo

  • Memory leak and problem with polymorh vi when calling vi from dll

    Two problems appear for me when using the setup below.
    First, I have a vi for opening a secondary vi:
    Then I have a vi for calling the opened, secondary vi:
    These two are compiled to a dll. The first one is called once, calling a function "open(char *)". The second one is called over and over, calling a function nextevent(double *, int). A simple example of an opened, secondary vi looks like this:
    The code used to send data looks approximately like this:
    dataout = malloc(dx->numelems * sizeof(double));
    datain = (COMPLEX *) dx->cont;
    for (i = 0; i < dx->numelems; ++i)
        dataout[cnt][i] = sqrt(datain[i].re * datain[i].re + datain[i].im * datain[i].im);
    nextevent(dataout, dx->numelems);
    free(dataout);
    This code is called in a loop. dataout is a double array to be sent to the secondary vi, datain is the source data.
    The problem now is that there is something eating up memory, and I fail to see why.
    My second question is this:
     I want to insert a Hamming window, or some other form of windowing function. It doesn't work however, and the help tells me it is because a vi opened this way cannot contain any polymorphic vi. Is there a convenient way around this problem?
    Lars Melander
    Uppsala Database Laboratory, Uppsala University

    Regarding your second question:
    As you say not possible to use a polymorphic vi in a DLL and in your case it is the windowing VI that is polymorphic. What you can do is to use only one instance of the windowing VI in the short cut menu. 
    Here is a link to a report about this error in the knowledgeBase:
    http://digital.ni.com/public.nsf/allkb/755CE99505A1C9FF8625693C00508DDE?OpenDocument

  • Problem with output data when calling into Oracle stored procedure

    I have a problem that I think I've seen posted by others, but I can't find it anywhere on the forum. Here's what it looks like:
    I have a application that sends a query parameter called custID in a URL to a JSP page.
    http://domain.com/decrypt.jsp?custID=ewsw
    The JSP subsequently calls into the method below to run a decryption stored procedure on an Oracle db. The custId parameter works fine from most clients. However, I have seen the decryption stored procedure return invalid information on some clients in the following case:
    http://domain.com/decrypt.jsp?custID='eirwx
    Here is how I define my call to the DCUSTID (decryption stored procedure):
    public long dCustID(String sCustID)throws SQLException {
    CallableStatement cs = null;
    try {
    long nCustID = 0;
    if(conn == null || conn.isClosed()) {getLocalConnection();}
    String sp = "BEGIN DCUSTID(?,?);END;";
    cs = conn.prepareCall(sp);
    cs.setString(1, sCustID);
    cs.registerOutParameter(2,java.sql.Types.NUMERIC);
    cs.execute();
    nCustID = cs.getLong(2);
    return nCustID;
    }finally { release(cs); }
    I have not been able to find a problem with the stored procedure (although Im not counting that out). Is there any way that the jsp or the code above is corrupting the data before it gets to the stored procedure? I'm very suspicious of the single quote at the begining of the custID query string parameter.
    Thanks

    >
    The JSP subsequently calls into the method below to
    run a decryption stored procedure on an Oracle db.
    The custId parameter works fine from most clients.
    However, I have seen the decryption stored procedure
    e return invalid information on some clients in the
    following case:
    The back tick doesn't matter.
    How do you know that the routine that you posted returns invalid information? Are you printing the value retreived before you return in the code that you posted? That is the only way to tell if that code is the problem vs some translation problem in something else.
    And what do you mean by 'invalid'? It does return a numeric value right? Is it negative? Or so large that it couldn't be a key? Or what?
    The input parameter to the stored proc is a varchar and not a char correct?

  • Problems with german umlauts when Migration from MS Access to Oracle

    When I make a Migration from MS Access 97 to Oracle 8.1.5, I have Problem with the germans characters (umlauts). The Oracle is using the rigth character Set for german characters. What can I do? Is it e problem from the MS Access ODBC Driver or the Oracle ODBC Driver?

    Is your character set for Oracle set up to UTF8??

  • Problem with data format when getting from a database

    I'm trying to get a date from the database but the problem is that it also return the time. I have tried to change the format of the date when retrived from my database but it still returns the time.
    Any solutions?
    String theDBDate = rset.getString("date_of_call");
    SimpleDateFormat formatterdate = new SimpleDateFormat ("EEE, MMM d, ''yy");
    String date = formatterdate.format(theDBDate);
    theCalls.setDateofCall(date);// callin my Call Class to store the date which is a string

    Hi could any help me? I have this problem for the last few day. I gave up on it for a while but today I'm trying to get to the botton of this problem.
    I connecting to an oracle database but it return back the date & time but I want only the date.
    Here my code.
    Locale currentLocale= new Locale("en","GB");
    Date today = new Date();
    DateFormat formatter = DateFormat.getDateInstance(DateFormat.DATE_FIELD,currentLocale);
    String theSQL = (" Select * From Call ") ;
    Statement stmt;
    stmt = conn.createStatement();
    ArrayList CallsList = new ArrayList();
    ResultSet rset;
    rset = stmt.executeQuery(theSQL);
    while(rset.next() == true)
    Call theCalls = new Call();
    theCalls.setCallNo(rset.getInt("call_no"));
    theCalls.setUsername(rset.getString("username"));
    theCalls.setCompID(rset.getString("comp_id"));
    theCalls.setTimeofCall(rset.getString("time_of_call"));
    Date todaydate = rset.getDate("date_of_call");
    Timestamp theDBDate = rset.getTimestamp("date_of_call");
    SimpleDateFormat formatterdate = new SimpleDateFormat ("EEE, MMM d, ''yy");
    String date = formatterdate.format(theDBDate);
    theCalls.setDateofCall(date);
    theCalls.setPriorty(rset.getString("priorty"));
    theCalls.setProbCat(rset.getString("problem_cat"));
    theCalls.setProbDesc(rset.getString("problem_desc"));
    theCalls.setCloseDate(rset.getString("close_date"));
    theCalls.setProbSol(rset.getString("problem_sol"));
    theCalls.setStatus(rset.getString("status"));
    theCalls.setAssign(rset.getString("assign"));
    CallsList.add(theCalls);
    conn.close();
    return CallsList;

  • Do you see problems with text size when importing from Photoshop?

    Hi all -
    We're working on improving some things in the Photoshop-to-Reflow workflow, and right
    now specifically investigating trouble with imported text.
    Aside from the desire to have support for local fonts, are there any problems you run into
    when importing text from Photoshop into Reflow? We've heard some issues with text size and position,
    but want to make sure we understand all of the cases.
    If you have problems in this area, please share them in this thread, and I'd also love to get some
    sample PSDs that demonstrate the problems. (You can send them directly to me; vmitnick at adobe dot com .)
    thanks,
    Vic

    I'm using CS4.. and I'm using the standard "Save As" .pdf features....
    and I'm reading it with adobe acrobat pro 9.1...
    i think it has something to do with compression. but i can't figure out how to solve it. converting the text to symbols maybe?

  • TS2755 I have an iPhone 5 and am experiencing problems with receiving photos in iMessage from other iPhone users.  I have been to the Apple store and the genius could not find anything wrong with my set up.  suggestions anyone?

    My iphone 5 is receiving photos from other iphones as text, not imessage...the genius at the apple store did not find any problems.  suggestions anyone?

    - On her iPod go to Settings>iCloud  and turn off contacts and other things if you want.
    - On the iPod go to Settings>Messages>Send and Receive and add here own email address and delete the Apple ID email address. Also uncheck yur phone number if it appears. The only way to delete the phone number is to use an Apple ID not associated with the phone. You do that in Settings>Messages>Apple ID
    You can go to Settings>FaceTime>Yu can be reached at and add here email and delete the Apple ID.

  • Same URL when called from other page when called directly behaves different

    Hi All,
    I am working on SRM 5.0 implementation , the open catalog interface applications are called from a link from the standard ITS  (thses catalog applications are developed in BSP) and then submited back to the ITS application using a URL :
    va r ret_URL = "<% = hook_ur l%>"   <--- this is the return URl to which catalog data is submited
    d ocument.f inal . action = ret_URL;
    d ocument .final .method = " P O S T ";
    d ocument. final. submit ( );
    This application is transfered perfectly if the catalog is called by clicking link on standard ITS application(EBP application) but if i enter the catalog URL(BSP Application URL) directly in the browser and hardcode the value of HOOK_URL (ret_url) in BSP application , the catalog is submited but it shows a blank page with javascript error 'window.opener.isLeanWP' is null or not an object .
    hook_url = http://sapupd.mycompanyname.com:8002/sap/bc/gui/sap/its/bbpsc02/?~OkCode=ADDI&~Target=_top&~Caller=CTLG&~client=200&sap-client=200&~language=EN&~HTTP_CONTENT_CHARSET=utf-8
    Kindly suggest the solution. We need to call the OCI application directly and submit it to ITS application using this hook_url.
    Regards,
    Anubhav

    Please post this question to the Portal Applications forum.
    Thanks,
    Jerry

  • Problem with Transaction iView when calling R/3(Personalization)

    Hi
    I have created several Transaction iViews , where I am calling different Backend Systems like R/3 , BW, etc.
    My problem is , when I launch the iView, I can able to see the SAP Easy Access for R/3 , BW etc. But the language that user have in the backend is over writed by English.
    In the iView properties, I have not selected any language.
    In the Portal Personalization /UME also I have not selected any language.
    But in R/3 I have selected "de" as my language but the R/3 SAP Easy Access showing only English.
    Any advice please? should we have any settings in the portal without touching iview properties or portal personalization to view the backend GUI in the same language that is set in the backend profile?
    Thanks in advance.

    Hi,
    The following way might help you.
    Go to Internet web browser, select Tools in the menu, then select Internet options --> General Tab --> Languages --> Add --> German(de) . finally move up the German(de)
    Deep

  • I have an IPod touch 4 gen. And I'm having problems with the audio when I use other than Apple brand earphones

    I have an Ipod Touch 4 gen. and I'm having problems with audio when I use other than Apple brand earphones. I'm talking about music only so far, when I use apple earphones all is fine, but if I use other type of phones ( sony for exemple ) I can only hear the music and the background but not the lead singer voice, can anybody explain this to me? thank you.

    - Try cleaning out/blowing out the headphone jack. Try inserting/removing the plug a dozen times or so.
    - If still problem, make an appointment at the Genius Bar of an Apple store since it appears you have a hardware problem.
    Apple Retail Store - Genius Bar                                      

  • Problems with Capture Date when converting from PSE9

    I'm trying to troubleshoot a problem I'm having when converting my PSE9 catalog to LR3.4. Specifically, about 20% of my images (abouit 2,500 out of 12,000) didn't import with capture dates. I can clearly see the correct capture dates in PSE9 Organizer, but when I view the same imported images in LR3.4, there is no date. This occurs with dates that I've modified in PSE9 as well as dates straight out of the camera.
    This is a major problem for me because I'm used to organizing my photos in PSE9 using capture dates. On a related note, PSE9 allows you to set the capture date to a known year and unknown month, day, and time, but when imported into LR3, these dates are converted to Jan 01 of the known year. Sorry, but Jan 01 is not the same as unknown. Is there a way to correctly display unknown portions of a capture date in LR3 similar to the way it's displayed in PSE9?
    Sorry if this has been discussed before.

    How did you convert your catalog?  Did you use File > Upgrade Photoshop Elements Catalog, or did you use File > Import Photos?  You should use the former; the latter has many problems, among which PSE doesn't always correctly write medata (e.g. capture dates) into files. If you used File > Upgrade Photoshop Elements Catalog, post an image here and we can take a look at its metadata to troubleshoot.
    function(){return A.apply(null,[this].concat($A(arguments)))}
    On a related note, PSE9 allows you to set the capture date to a known year and unknown month, day, and time, but when imported into LR3, these dates are converted to Jan 01 of the known year.
    Even though Adobe's XMP metadata standard allows for unknown month, day, or time, most programs including LR don't support it -- PSE is the only program I know of that does (and it has problems).  I use the conveniton of 1/1 12:00:00 to represent unknown values.
    See this FAQ for other issues with converting PSE catalogs to LR:
    http://www.johnrellis.com/psedbtool/photoshop-elements-faq.htm#_Converting_to_Lightroom

  • Problems with custom authentication when migrating from 3.2 to 4.1.1

    Hi,
    we’re about to upgrade our APEX instances to 4.1.1 and to migrate our applications. I encountered some problems with our custom authentication schema.
    1.     Recognize already authenticated sessions: in 3.2 the sentry function could return false as long as the user was not authenticated. Public pages could still be displayed (including the login page). The result of the function apex_custom_auth.is_session_valid returned false until once the sentry function returned true. How can I recognize non authenticated sessions in 4.1.1? I looked for the test the Condition “User is the public user (user has not authenticated)” computes on a page but didn’t found the right one. It’s not what docu states here (comparison with the public user): http://docs.oracle.com/cd/E23903_01/doc/doc.41/e21674/condition001.htm#HTMDB25943. I replaced the test with p_authentication.username = ‘nobody’. It works. But that doesn’t seem to me to be the right way …
    2.     Post_logout lacks session context: the Post Logout Procedure does not receive a session_id and username. Neither the V(‘APP_SESSION’) nor p_authentication.session_id are set. This applies to both plugin authentication schemes and non-plugin custom authentication schemes. Is there another way to obtain the logged-out sessions infos or is this a bug?
    See apex.oracle.com for a demo, workspace WS_MW, gast/gast. Can someone please guide me the way?
    Michael

    Hello again,
    there are no replies until now .... I reviewed some posts regarding custom authentication again and did not find any solution for the issues. Found some that worked with APEX 3.2.1 but not with 4.1.1. I can only work around
    1.) in an insecure way, because the non documented (?) user "nobody" can change and all new sessions will be considered authenticated
    2.) in a way, that ends up in implementing the logout from the non apex environment outside the authentication schema or authentication plugin.
    May be I should contact support for at least the second issue because this doesn't work as documented or am I doing something wrong?
    Michael

  • BAPI exception when executing from external system.

    Hi Experts,
    I using the Function Module BAPI_MATERIAL_GET_ALL to get the Material and Plant attributes by giving Material and Plant data.I am able to get all the required
    attributes when I execute this Funtion Module in SAP but when I try to execute this
    Function Module from external system I am getting all the details except plant details.
    When I give plant data the Function module is throwing the below exception.
    java.lang.Exception: BapiWarning: I:MM:376 0001
       (0001 is the plant value)
    Please help me out over this issue.
    Thanks,
    Kiran.

    Hi ,
    i think u are getting this error
    W MM376 No planning data exists in plant 1000, u will get this message only if u pass the plant values to this FM , bcos its trying to get planning data from this plant.
    Regards
    Prabhu

Maybe you are looking for

  • DVD not recordable

    Satellite P300 Model PSPCCC-0K501C DVD model GSA-T50N I tried many new blank DVD's. I uninstalled the drive, rebooted and let Windows 7 redetect the drive and install drivers. Device manager shows device is working properly. DVD movies will play but

  • RKEVEXT3 - Execute CO-PA External Data Transfer - Report

    Hi All, We are using the report RKEVEXT3 to post the T&I data to the SAP. We have the input file and this program gets triggered and the job runs for around 3 hours. This long time is causing the problem for our overall job schedules.. What we though

  • Why don't my episodes show up (everywhere)?

    I've recently uploaded my rss feed (xml file) to my server and also through itunes to be listed in the podcasts. The first time I did it I just tested one episode for the podcast which was successful. The second time, I added 4 more epispodes to the

  • Using PM 400 gigabit as file server

    Does it make any sense to use the PM 400Mhz Gigabit ethernet as a network file server (by adding a SATA card and drives) or am I better off buying an external firewire hard drive? I'm looking mainly for speedy backups, but having an OSX file server i

  • Click to play not turning off

    So i've set plugins.click to play to both false and true, restarting firefox each time. It still blocks everything. I had a similar problem with the last update as well, and couldn't find an add-on that would help. To be fair i'm not getting the anno