How to get the Newly Created Material

Hi all,
Iam creating Materials using BDC sessions method,My Problem is to update the Newly Created Material in a Ztable.
so iam getting the Newly created Matnr by the following peice of code
    SELECT  matnr FROM mara INTO  TABLE v_matnr
                           WHERE ersda = sy-datum
                           ORDER BY matnr DESCENDING.
But the thing is,we are getting Previously created material.i.e the new material will be  created only after the sessions are processed,but when i write the above code in the program we are getting previous material.
so how to update the newly created material.
I think we can't do  that through program because we can get new material only after processing the session..so what is the solution for this.should we use userexits for getting the newly created material.
thanks in advance
balaji

Hello,
Use the <b>BAPI_MATERIAL_SAVEDATA</b> to create the materials.
The BAPI will return the Material number which is created at that instance by which u can update the ZTABLE.
Vasanth

Similar Messages

  • How to get the Newly added fileds from Oracle to BW

    Hi ,
    We have created the view in the DB side and extracted the data to BW side. After that in the DB side they have added new filed. I want to extract the data for that filed also. But that filed is not displaying in the data source itself. We have deleted the sources system assignment to that particular info source and generated the data source in the source system side, and then also I an unable to get the newly added filed in the data source. We are extracting the data from the ORACLE data base. Please let me know the steps how to get the newly added filed in the data source.
    Thanks,
    Visu

    Hi Yadav,
    yes i have alreday created the info objects in the BW side. In the Oracle DB i can see the fileds in the data sources. Newly added filed is not displaying where as previous all fileds are displaying in the oracle DBside.
    Thanks,
    Visu

  • How to get the user created at and modified at properties for a site collection using powershell

    Hi guys, I Know how to get the list of users of a site collection by Get-SPUser cmdlet but hte problem is that this cmdlet doesnt give me the user Created at and modifed at properties 
    can any one tell me how to get these values via powershell???? 
    ps: ignore the 2013 screenshot.. i just want a way to get those values .. if you provide me solution in either 2010 or 2013 , i will crack the other..
    plz guys help me ...

    Get the User Information list and then get the user from that list
    $web = Get-SPWeb "siteUrl"
    $userInfoList = $web.SiteUserInfoList
    $userItem = $userInfoList.Items[0]; #0 here is just for demonstration. You take the user you want here or loop through all users.
    $created = $userItem["Created"]
    $modified = $userItem["Modified"]

  • How to get the New created Hier for existing IO and IS in the Infopackage

    hello Gurus,
    I have created a new Custom hierarchy on an existing InfoObject 0Costcenter. There are many Hierarchies already existing and being fed from R3. This new hierarchy is just a regrouping of costcenters.
    Now I have created this new Hier and activated it, When I tried to create a Infopackage to load this new Hier, I am not finding the new created Hierarchy in the Hierarchy Selection tab of Infopakage.What should I do to see this new HIer.
    Thanks
    Simmi

    so, the costcenter hierarchy created by the user is not a std costcenter hierarchy, so it should be a set hierarchy. go to tcode BW07 in r/3, give the name of the table and field, if you like the name of the datasource too orelse the system woudl generate it. But the costcenter hierarchy is compounded to controlling area, you would need to write a user exit to populate the compounding object too in the datasource, orelse all the costcenters would be unassigned to controlling area. once created, you can check the same in rsa6. once you see it there, replicate the DS to BI, and after that the data flow is same. create a new infopack to load the set hierarchy, as you wont be able to see this hierarchy in the std costcenter hierarchies.
    check a few other threads:
    Tcodes BW10/BW07 - how to use these
    compounding for hierarchies:
    ZXRSAU04 - programming for compounding in hierarchy

  • User-Exit - MIGO How to get the Number of Material Document

    Hi everyone!!
    I'm looking for an user-exit after saving in MIGO transaction. I need the Number of Material Document (MKPF-MBLNR) to generate an IDOC.
    Does anybody knows an user-exit to get this number?
    Regards,
    Rubens Kumori
    Edited by: Rubens  Kumori on Oct 20, 2008 3:26 PM

    In BADI definition [MB_DOCUMENT_BADI|https://www.sdn.sap.com/irj/sdn/advancedsearch?cat=sdn_all&query=mb_document_badi&adv=false&sortby=cm_rnd_rankvalue], you may use interfaces [MB_DOCUMENT_BEFORE_UPDATE|https://www.sdn.sap.com/irj/sdn/advancedsearch?cat=sdn_all&query=mb_document_badiMB_DOCUMENT_BEFORE_UPDATE&adv=false&sortby=cm_rnd_rankvalue] (before update task) and [MB_DOCUMENT_UPDATE|https://www.sdn.sap.com/irj/sdn/advancedsearch?cat=sdn_all&query=mb_document_badiMB_DOCUMENT_UPDATE&adv=false&sortby=cm_rnd_rankvalue] (in update task)
    Regards

  • How to get the user created tables.

    hi,
    i'm new to oracle 10g xe. i created 3 tables and inserted data successfully. i want to show the list of all tables which are created by the user.
    in the previous versions i used the syntax, "select * from tab;".
    it retreives all the tables created by user and oracle.
    i need any syntax to get only the user created tables.
    i need ur suggestions.
    regards,
    pavan.

    Hi,
    connect as scott/tiger
    Issue the command
    select table_name from user_tables
    Simon

  • How to get the user created when I prepare for the BD Identity Manager

    Hi I have a query, I need to get a backup database Identity Manager 9.1, I have a problem I do not remember user created to perform the backup, how can you know that I created when I made the installation of Identity Manager, or how can I find

    Hi,
    You can do this trick:
    1) Go to "Deployment Manager" in the Web Console, and open the EXPORT applet
    2) Export the User Defined Fields from the USR form. You don't need any dependence for this.
    3) Open the generated XML with a text editor.
    3) Search for the <SDK_SCHEMA> tag
    This tag contains the OIM schema name, wich shoud be your OIM database user.
    Hope it helps,

  • How to cancel the newly created record

    Hi,
    I have created a record in a table, but i want to cancel that record before pressing the apply button.
    How to do this like "Clear Record' in oracle forms?
    Thanks in advance,
    SAN

    Hi,
    Use below code to delete a record in Advance table...
    AM:
    public void Delete(String dseqnum)
    Number dsequm;
    int fetchedrowcount;
    int dseqnumtodelete;
    RowSetIterator deleteIter;
    OADBTransaction tr = getOADBTransaction();
    DisconutVOImpl dvo = getDisconutVO1();
    DisconutVORowImpl row=null;
    dseqnumtodelete=Integer.parseInt(dseqnum);
    fetchedrowcount=dvo .getRowCount();
    deleteIter = dvo .createRowSetIterator("deleteIter");
    deleteIter.setRangeStart(0);
    deleteIter.setRangeSize(fetchedrowcount);
    for(int i=0;i<fetchedrowcount;i++)
    row= (DisconutVORowImpl)deleteIter.getRowAtRangeIndex(i);
    dsequm=(Number)row.getAttribute("SequenceNumber");
    if(dsequm.compareTo(dseqnumtodelete)==0)
    row.remove();
    break;
    deleteIter.closeRowSetIterator();
    Call above method in co on delete action:
    CO:
    if("Delete".equals(pageContext.getParameter(EVENT_PARAM)))
    String delete_mpid=pageContext.getParameter("MPeriodid");
    AM.Delete(pageContext, webBean,delete_mpid);
    Note:Set below properties for Delete button..
    Disable Server validation:*TRUE*
    Disable Client validation:*TRUE*
    Regards
    Meher Irk

  • How to get the global create tasks that a user is authorized to initiate?

    Hi,
    I am using SOA Suite 11g.
    I want to develop a custom workspace using Workflow Service API and BPM Service API.
    What I need to implement is, When a user login in into the custom workspace, I need to show him a list of processes that he is permitted to initiate as the out-of-box Workspace does. I wonder how can I implement this using API.
    thank you guys!

    Hey Ramy,
    A bit off the top of my head, but try this:
    IPortletContext PortletContext;
    IRemoteSession PTSession;
    PortletContext = PortletContextFactory.CreatePortletContext(Request, Response);
    PTSession = PortletContext.GetRemotePortalSession();
    privatevoidgetCommunities()
    IObjectManager Manager = PTSession.GetObjectManager(ObjectClass.Community);
    IObjectQuery Query;
    Query = Manager.QueryObjects(-1, 0, -1, ObjectProperty.Name, true);
    for(inti = 0; i <= Query.GetRowCount() - 1; i++) {
    string sCommunityName = Query.GetRow(i).GetName();
    string sCommunityID = Query.GetRow(i).GetID().ToString();
    Cheers!John

  • How to get the material list displayed in CU50 transaction into ABAP report

    How to get the 'KMAT" type material list displayed in CU50 transaction into ABAP report?
    I am getting the entire BOM when i am using the FM CS_BOM_EXPL_MAT_V2 in to the table in the report.
    But I want only the material list displayed in CU50.

    Hi,
    Could you please tell us how you found a solution to your problem?
    Thanks & regards
    Hassan

  • How to get the new Primary Key after the Automatic Row Processing (DML)

    Hi,
    I have a nice master detail form.
    I want, immediately after submitting the page when creating a new record in the master table, that the user may input the associated table (the detail table). For that I have created a branch that goes back to the very same page after creating the record (ie submitting the page with the button Create). In the Action of the branch, i have put P30_FICHE_ID (the item containing the primary key of the master table) with its value : &P30_FICHE_ID.
    Unfortunately I see that the item is not populated with the very new primary key. it seems normal becaus after submitting the page the tiem is not populated. This is my question : how to retrieve the newly created primary into the item P30_FICHE_ID in order to begin immediately to add rows to the detail table ?
    Hope I'm clear. My english not perfect.
    Thank you for your kind help !
    Christian
    Edited by: Christian from France on Oct 16, 2009 6:36 AM

    Christian,
    After creating Master-detail form, goto your Detail page. In this page you can see one conditonal brach which will point to 'Master' page.
    Edit this branch and here you can see this branch fires when request is in 'SAVE,DELETE,CREATE' (in Expression1). Now change the value in Expression1 to 'SAVE,DELETE'. This will do the needful :-)
    Cheers
    Hari
    Edited by: Hari_639 on Oct 16, 2009 8:02 PM

  • The newly created row cannot be found with another view

    I'm building a JSP client based on BC.
    I have 2 views based on the single entity.
    I'm creating a new row with one view and want to edit the corresponding row with the other view without intermediate commit.
    However, the last view cannot find the new row.
    For the purpose I get the newly created row's key and trying to find the row at the other view by it's RowKey with the tag <jbo:Row>. Now I have an exception:
    oracle.jbo.JboException: Row was not found using request parameter ...
    Can someone give an advice, please?

    Hi,
    I was a little uncertain. I do not have any view associations in this case.
    I've tried to use " .setAssociationConsistent(true)" - dosen't help.
    I've just changed the standard wizard-generated Browse-Edit UIX/JSP form in such way that I'm using one VO for the browse-table jsp, and some other VO for editing jsp. The editing jsp is by itself divided into a number of tabs.
    Every tab of the editing jsp is based on a specific VO and all of the VOs are based on the single Entity Object to the one table.
    While I am editing the existing records in the table everything goes right, but if I create a new row via the browse page and then try to edit it, I have the exception:
    " Row was not found using request parameter: .... " This thread is continued in another post
    Re: ORA-03113 end of file on communication channel error
    There is a bug with hanlding of viewlink-consistency and DBsequence in Jdev 9.0.2 that leads to this issue as discussed in the other thread.

  • How to get the unoccupied material number in a number range

    How to get the unoccupied material number in a number range.for example, I wang to get a number between 1500000 and 1599990 which is unoccupied as my material number to be created. Is ther any FM or codes?

    Dear,
    You can get this information from Tcode SNUM or you can access database table NRIV.

  • How to get the only the changed or newly added entries in AFTER SAVE.

    I have created table maintenance generated for a table,I want to get the newly added or changed entries while saving thats why im using AFTER SAVE event for the same,can anyone please tell me how to get the only the changed or newly added entries in AFTER SAVE.

    Hi,
    Welcome you post on the forum.
    I have moved your thread here because it is in English and should not in the language specific forum. What is your system version?
    Thanks,
    Gordon

  • How to get the latest procured value of a spare updated in material master

    How to get the latest procured value of a spare updated in material master

    J S S PRASAD
    See table MBEW via transaction SE16.
    However, you may need to look at the last PO created for that material.
    PeteA

Maybe you are looking for