Bdc to get the order created

hi,
how to get the transfer order created after upload the data via bdc for tcode lt01?
thanks

Hai
ITS VERY USEFUL
Don't use GET PARAMETER becasuse if we run bdc call transaction in parallel / create same new item with using ur tcode IT01 so that time its take lates one in parameter id , so please use
CALL TRANSACTION <TCODE>
MESSAGES INTO <internal table with using structure BDCMSGCOLL>
READ <ITAB> WITH KEY MSGTYP= 'S'
IF SY-SUBRC = 0
<ITAB-MSGV1 is latest created item> its select from status bar
ENDIF
**********EXAMPLE*************************************
data: lv_opt type CTU_PARAMS.
      lv_opt-DEFSIZE = 'X'.
      lv_opt-dismode = v_mode.
      lv_opt-UPDMODE = lc_l.
TYPES : BEGIN OF t_bdcerror.
        INCLUDE STRUCTURE bdcmsgcoll.
TYPES : END OF t_bdcerror.
DATA: i_bdcerror TYPE STANDARD TABLE OF t_bdcerror.
CONSTANTS :  lc_smsgtyp(1) TYPE c VALUE 'S',  "Success Message
             lc_173(3)    type n value '173',
             lc_f2(3)  type c value 'F2'.
CALL TRANSACTION IT01 USING i_bdcdata
             options from lv_opt
             MESSAGES INTO i_bdcerror.
READ TABLE i_bdcerror INTO wa_bdcerror
          WITH KEY msgtyp = lc_smsgtyp
          msgnr = lc_173
          msgid = lc_F2..
  IF sy-subrc EQ 0.
<U R LOGIC>
ENDIF
**Please reward suitable points***
With Regards
Navin Khedikar

Similar Messages

  • 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

  • Documents created on my iPhone or iPad go into iCloud with no problem.  Why can't I get the documents created on my MacBook Pro to go into iCloud?

    Documents created on my iPhone or iPad go into iCloud with no problem and I can then access those documents from any of my "toys".  However, documents created on my MacBook Pro do not go into iCloud, and as such, they are not accessable from my iPhone or iPad.  How can I get the documents created on my MacBook Pro to go into the cloud?

    Reset iCloud sync state
    On Mac:
    Close open applications
    Open a Finder window
    Choose “Go to Folder…” from the “Go” menu
    Enter “~/Library/Application Support/”
    Find the folder named “Ubiquity” and move it to the Trash
    Restart your computer

  • How to get the order for these decoration​s?

    hello,
    I want to programatically resize all the controls, indicators and decorations on the front panel.
    I am getting the references of all the controls and indicators and able to resize them, as each n every control and indicator has a tabbing order set to it.
    I am also getting the references of all the decoration used on the front panel but not able to get the order.
    how to get the order for these decorations?

    The order of the decorations is the same as the back to front order. So you
    can change it by bringing decorations to front, or sending them to the back.
    It has been suggested many times that decorations should have labels as well
    as controls, but at the moment there is no way to tell which reference
    belongs to which decoration (besides position and order).
    Regards,
    Wiebe.

  • Get Sale order created date & time

    Hello.
        Can anybody help me in finding the function module which takes sale order no. as input & gives me the order created date & time as output.
    Regards
    Devika.S

    In Table VBAK,  you can see both these fields
    1)  ERDAT:::::Created date
    2)  ERZET::::::Created time
    thanks
    G. Lakshmipathi

  • How to get the order type from notification number

    Hi,
    i have the notification number,
    fromthis number how can i get the Maintenance Order type.
    what is the table name to get the order type.
    Please tell me.

    Hi,
    First you read table QMEL with notification number and get AUFNR. Then go to AUFK and get AUART (order type).
    Some thing like,
    SELECT SINGLE aufnr INTO lv_aufnr FROM qmel WHERE qmnum EQ <your notification>.
    IF sy-subrc EQ 0 AND NOT lv_aufnr IS INITIAL.
      SELECT SINGLE auart INTO lv_auart FROM aufk WHERE aufnr EQ lv_aufnr.
    ENDIF.
    Hope this helps..
    Sri

  • FMs to get the order items list for an order template

    Hello everyone,
    I'm looking for sap FMs (or tables) to get the order items list for a given order template in CRM backend.  Any advice/suggestions?
    Thanks, Jin

    Hello Jin,
    Function module CRM_ORDER_READ with either the Header GUID will give you everything about the order and you can optimize the call by limiting the sets you want to get in the export tables.
    The item list (administration data) can be from ET_ORDERADM_I and the details about the products can be found from ET_PRODUCT_I
    FYI, this will work for any transaction - Order, Quotation and of course Order Templates too.
    Easwar Ram
    http://www.parxlns.com

  • Get the Order # from the Field VBAP-ARKTX field

    hi,
    i.Order # - for order number parse description field (VBAP-ARKTX) from the right, grab numeric values until reaching a space or ‘#’ character.
    vbap-arktx = 'LABOR'.
    vbap-arktx = 'IC,OCTAL BUFFER/DRIVER 74C240'.
    vbap-arktx = 'IC,BUS TRNCVR,OCTAL    74HC245'.
    vbap-arktx = 'AP CER .1UF 20% 100V AX T/R'.
    vbap-arktx = 'CAP,ELECT,RAD,LOESR,1000UF,16V'.
    vbap-arktx = 'SOCKET,IC,.600 DIP,40-PIN,PHBZ'.
    for the above VBAP-ARKTX Value...how to get the Order# as per the requirement.......
    kindly let me know

    Hi Deepthi...
    I am afraid that there is no safe way to do it.
    Given that you write such a code snippet, for the examples you provide the resulting order string might be like this:
    vbap-arktx = 'LABOR'.
    Order = .... nothing... no numeric values found
    vbap-arktx = 'IC,OCTAL BUFFER/DRIVER 74C240'.
    order = 74C240 or 240 or 74240 ?
    vbap-arktx = 'IC,BUS TRNCVR,OCTAL 74HC245'.
    order = 74HC245 or 245 or 74245?
    vbap-arktx = 'AP CER .1UF 20% 100V AX T/R'.
    order = ???
    vbap-arktx = 'CAP,ELECT,RAD,LOESR,1000UF,16V'.
    order = ???
    vbap-arktx = 'SOCKET,IC,.600 DIP,40-PIN,PHBZ'.
    order = ???
    As you realize, there is no way to tell if there is an order in any case.
    Regards,
    George.

  • Getting the Order number in BDC

    Hi ,
    I have written on BDC where I am creating the sale orders, bu I would like to konw how to get the sale orders created.
    belos is sample code.
    Loop itab.
    BDC processing.
    Call transaction va01.
    ***here I need to get the created order number above.
    endloop.
    Regards,
    vinesh

    data: it_msg type standard table og bdcmsgcoll,
             lf_msg    type string.
    loop at it_msg into wa_msg.
    call function  format_message
       exporting
       id  =  wa_msg-msgid
      lang = sy-langu
      no   =  wa_msg-msgnr
    v1   =   wa_msg-msgv1
    v2  =   qa_msg-msgv2
    v3   =   wa_msg-msgv3
    v4  =   wa_msg-msgv4
    importing .
    msg  =   lf_msg.
    try with this peace of code.
    Regards,
    Raji

  • 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 can I get the order of my podcast to appear correctly in the store?

    When I subscribe to the podcast, the order is correct.  However, in the store it is not.  I just published the podcast to iTunes store and pubDate matches the physical order of the <item/> tags and that's what matches the podcast when subscribed (new on top).

    If you enter your podcast name in the search field, then the results page apparently shows the episodes in popularity order - it may also bring up other podcasts with a similar title and then mix up episodes from the various podcasts.
    If you go to your actual Store page - click on the icon for your podcast in the Search results, or go to the URL you were given in the acceptance email - then initially the Store sorts by the numbered column at left, which should give the order of episodes in the feed. You can click on the headers for the other columns to sort by title, date, etc. - when subscribing you get pubDate order and no opportunity to change it.

  • 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 can i get the order form to display only those fields selected by user?

    Hi everyone,
    I'm a newbee so please bear with me.
    I would like to create an interactive form in a multi-page format. I would like to display our fifty odd products, divided into 5 different categories. The client browses through these pages then selects those that he wants to buy.
    The interactive order form at the end should display only the client’s choices along with the Total purchase order.
    In short, a little like a on-line catalogue and cart/basket that we see while buying online.
    Now, I've created my pdf brochure, and I have the order form on page 12-13 at the end with the subtotal, Vat and Total ...all that's fine. My only problem is I want the order form to display only those items selected by the user and not the entire list of items as shown in my current order form.
    Have a look at my pdf here http://www.upperside.fr/vijee/mpls09ex/EXHIBITOR%20SPECIAL%20ORDERS2010.pdf
    Can someone please help me/guide me to the right resources that I need to look up to achieve my end result.
    Thanks a lot in advance.
    Vijee

    The poster already posted at the Acrobat Users Community, Interactive Forms that sums up a client order from catalog. The sample form posted to Acrobat.com was a revision of the sample form that came with Acrobat 4.0. There are some fairly advance scripts, templates, and document level functions involved with this form.

  • Where can I get the orders related to the sales area

    Hi,
    Could anybody tell me the Orders related to the Sales Area in CRM.
    Thanks,
    bsv.

    HI,
    YOu can use table CRMD_ORDERADM_H, CRMD_LINK and CRMD_ORGMAN.
    Get order GUID from CRMD_ORDERADM_H
    find record in CRMD_LINK with
    GUID_HI = Order GUID from CRMD_ORDEARDM_H
    OBJTYPE_HI = '05'
    OBJTYPE_SET = '21'
    You will get one and ony one record. now take GUID_SET from this record and goto table CRMD_ORGMAN
    Use this GUID_SET in CRMD_ORGMAN to get your sales area..
    This must solve your problem.
    Kindly reward with points in case helpful
    Sharif.

  • Billing date is for Monday for the orders created on Saturday and Sunday

    Hi Friends,
    I have an issue,that for the orders that are created on weekdays, the Billing date is for the same day.
    But for the orders that are created on Saturday and Sunday,the Billing date is being determined automatically for Monday.
    The goods are service material and ther is no delivery being created for these goods.Still the requested delivery date is being determined for Monday for the weekend orders.
    Any idea where i can check these settings or which program or userexit can be looked into for this.
    Thanks in advance...
    Sultan Khan

    Hi,
    How about using BBP_DOC_CHANGE_BADI ?
    Regards,
    Masa

Maybe you are looking for

  • How to use at new in alv report

    Hi Experts, I am creating a ALV report in which i have to sorted the data with 1 field like " if there the one division that have multiple department , so i have to show the output like division name then next row contain the releted dept of that" ca

  • How to Use logical schema in Variable

    Hi, I am using ODIFileCopy. I want to use the connection details configured in my Logical or Physical Schema, in ODIFileCopy. Please let me know i can use the topology connection in ODIFILECOPY. Thanks:)

  • Premiere Pro CC crashes every time I open up a version of a project

    I have a 3 month project I've been working on and now I can't open any version of it without it crashing when I open the project. Or... Crashing when I click on the Main Sequence to view it in the timeline.  I have several incrementally saved version

  • Can't send email on iphone 4 with hotmail but can receive

    getting an error saying no password for hotmail when i try to send email but everything works perfectly on gmail

  • Correction Invoice and "invalid document structure" problem

    Hello! Can anybody explain what properties are obligatory for correction invoices? I'm trying to add() one and it always say -5002: invalid document structure. In the CSI1 table I see linenum has to be unique, every baseline is twice. Do I make any s