How get Material Doc. From Delivery

Hi experts,
How can i get Material Document No. from Delivery No. when PGI Complete.
What is the Proper way to find the material document no. from delivery no.
with best performance.

Use table VBFA.
select <fields> from VBFA
where vbelv = <delno>
and      posnv = <del line item>
and      vbtyp_n = 'R'.
Regards
Vinod

Similar Messages

  • How get browser URL from portlet JSR-168?

    I use Oracle Portal. And I have problem.
    How get browser URL from portlet JSR-168?

    Normaly it is
    http://server:port/portletContextRoot
    Did you create the portlet with JDeveloper? When you dpeloy the portlet to your application server, JDeveloper should output the URL of the portlet test page in the deployment output feedback.

  • How to get material description from material number.

    Hello ABAP Pundits,
    I have got the material number MATNR.
    I need to get Material Description MAKTX using this material number.
    Now MAKTX is not a table that I can go and fetch it.
    What function module do I require to fetch that material description field ?
    Points will be surely awarded..
    Tushar.

    Do a select against <b>MAKT</b>.
    parmaters: p_matnr type mara-matnr.
    data: xmaktx type makt-maktx.
    Select maktx into xmaktx from makt
              where matnr = p_matnr
                and spras = sy-langu.
    Regards,
    Rich HEilman

  • Cancellation of Invoice, Material doc, Inbound delivery and TO

    Hi
    I have run the following business ME21N->VL31N->LT03(TO)->LT12(TO confirmation)->Material doc is created->MIRO.
    Now i want to reverse the whole process. I have cancelled the Invoice then cancelled the Material document (MIGO), after the material document is cancelled a TR(LB11) is created, then i have created a TO from the TR created(LT04) ->TO confirmation. After this the quants are reversed from the bin to the GR area external reciepts.(nullifying with the first TO)
    My question here is how to post the stock again i.e. from where should i start ? When i am trying to create TO wrt VL32n its not happening because the status showing as completed and is it possible to cancel the inbound delivery created, If yes how to do that.
    The reason for this scenario is that the customer for some reason entered incorrect values and want to cancel the documents created.Everything should be cancelled except PO

    Scenario 1
    While creating the customer master my client forget to give the account assignment group in the billing tab of the sales area data. Because of this it did not hit the proper G/L Account. Automatically it went to some other accounts.
    My question is weather we want to cancel only the invoice or we want to reverse the delivery
    If your GL accounts will be determined based on the customer account assignment group and material account assginment group combination then you can enter manually in Billing document (if accounting document is not created), No need to reverse the invoice and delivery.
    Second Scenario 2
    My client taken the invoice without calculating the TAX and the same also released to accounts.
    Now he wants to Add the TAX
    You can cancel the previous invoice and create new invoice with taxes.

  • How get all record from master and matching record from detail

    hi master
    sir i have master detail table
    i have many record in master table but some record in detail table how i get
    all record from master and matching record from detail
    such as
    select m.accid,m.title,d.dr,d.cr from master m, detail d where m.accid=d.accid
    this query not work that get only related record i need all record from master
    please give me idea
    thanking you
    aamir

    hi master
    sir i have master detail table
    i have many record in master table but some record in
    detail table how i get
    all record from master and matching record from
    detail
    such as
    select m.accid,m.title,d.dr,d.cr from master m,
    detail d where m.accid=d.accid
    this query not work that get only related record i
    need all record from master
    please give me idea
    thanking you
    aamir
    select m.accid,m.title,d.dr,d.cr
    from master m, detail d
    where m.accid=d.accid (+)The outer join operator (+) will get you all the details from master and any details from the detail if they exist, but the master details will still be got even if there are not details.
    Note: Oracle 10g now supports ANSI standard outer joins as in:
    select m.accid,m.title,d.dr,d.cr
    from master m LEFT OUTER JOIN detail d on m.accid=d.accid

  • How get selected data from oracle data as per give input

    sir i use Sun Java Studio Creator with oracle 10g
    my direct want user give input through both listbox , textbox or string variable
    how i pass this input in sessionbeen query and page give data in table as per user need
    please give me step and code
    this is urgent
    thank's

    You would get hierarchical data from a functrion in the same way as you would any data.  Create a function returning a cursor and then use your SQL statement to open the cursor.  Very simplistically:
    Create Function My_Func Return Sys_Refcursor As
       l_cur Sys_Refcursos
    Begin
       Open l_cur For
          'select EMPNO,ENAME,SYS_CONNECT_BY_PATH(ename, '/') "Path"
           from EMP
           start with MGR is null
           connect by prior empno=mgr';
       Return l_cur;
    End;
    Then, whatever calls the function would walk through the cursor an do whatever.
    Jhn

  • How create an invoice from delivery using an idoc

    Hi expert,
    I'll like recive an help to know how implement the following solution: we would create an invoice from delivery sent into the idoc structure.
    In detail the process that we would implement is:
    To use an output type for outbound delivery and to assign a program to it in order to create an idoc when the output type is processed; when the idoc is created the program has to call the transaction VF01 to create the invoice from the idoc.
    Which type of idoc do we have to use?
    How the VF01 call transaction should be excuted?
    Many thanks in advance
    Regards
    Roberta

    Check with following standard basic IDoc types:
    INVOIC01- Invoice/Billing document
    INVOIC02 - Invoice/Billing document
    INV_ID01 - Invoice
    SISINV01- SIS - billing document
    And refer following link for understanding: [iDoc|http://wiki.sdn.sap.com/wiki/pages/viewpage.action?spaceKey=HOME&title=StepbyStepprocedureforcreationof+IDOC&decorator=printable]
    I hope this can assist you.
    Thanks & Regards
    JP

  • How get all components from form Jdev10.1.3.4

    hi
    I have a form on her field is not related to VO. Pagedef empty.
    each element has the id and Binding.
    <af:inputText label="#{r['questionnaire.surname']}"
                                  required="true" id="surname"
                                  binding="#{QuestionnaireBean.surname}"
                                  />I want to get an array of elements.
    in obtaining a list of bindings
             BindingContainer bindings = getBindings ();
             bindings.getAttributeBindings ();null ((((((

    As you are asking your empty pagedef, which is what you do with
    BindingContainer bindings = getBindings ();
    bindings.getAttributeBindings ();it returns null. This is expected behavior.
    You have to walk the component tree to get all components check each for it's type and get the information from the component itself. You can use something like
    // reset all the child uicomponents
    private void getAllUIItems(AdfFacesContext adfFacesContext,
                                     UIComponent component){
       List<UIComponent> items = component.getChildren();
       for ( UIComponent item : items ) {
           getAllUIItems(adfFacesContext,item);
           if ( item instanceof RichInputText  ) {
               RichInputText input = (RichInputText)item;
               //do your work here e.g. store id in an array
           } else if ( item instanceof RichInputDate ) {
               RichInputDate input = (RichInputDate)item;
               //do your work here e.g. store id in an array
    }you may have to alter the signature of the method to return the array of ids ...
    Timo

  • How to copy Partners from Delivery to Shipment?

    Hi,
    I know that a Shipment is used usually to group multiple deliveries.
    If I have the same partners, in the delivery that I want to group, is there a way to configure copy control from Delivery to Shipment?
    Tula Gentil

    Hi Tula,
    There is currently no provision in the standard coding to
    copy partners from the delivery into the shipment header.
    The only exception to this is the Partner :'Forwarding Agent', that can be copied from the Delivery into the Shipment.
    For this to be done, you should set up suitable copy routines in the customizing for the shipment type. Also the Forwarding agent should be unique in this case.
    You can assign your own partner functions , provided that they are set up correctly in transaction VOPA.
    The Partner functions for the Shipment stages have to be maintained
    separately in a Partner determination procedure specific to Shipment
    stages.
    The standard partner determination procedure for Shipment stages is
    'TRS1':Shipment Leg. You can find this in the customizing transaction VOPA for the Object Transport.
    You can add the required partner functions in the partner procedure TRS1, so that they are available for the shipment stages.
    I hope this information is useful to you!
    Regards
    David Merino

  • How to get Reference Doc from copy from button

    Hi..
    I would like to know if there is a way to get the source document or reference document number with-out  sdk or add on development , if you used the copy from button to populate the data?
    sample
    in order entry you can populate the data by using the copy button then choose sales quotation,  then using formatted search or select statement could i get the source documents (sales quotation number)..
    thanks
    Loren

    Hi Loren,
    If you need to get the BaseRef field before saving the document you can use the screen reference in your query:
    SELECT $[$38.44.0]
    Just selects the BaseDocument reference number from a row.  You may want to also use:
    SELECT $[$38.43.0]
    To get the Base Document Type (sales quotation, delivery etc.)
    Bob Richardson

  • Getting Material Doc number from BDC

    Hi ,
    Iam updating the materail using MSCN tcode in BDC.
    When the material is updated successfully through BDC.
    I have to capture the Material document number of that particular material.
    Please suggest me how to get the material documnet number of material which is updated through 'BDC'.
    Thnaks in advance.

    Hi,
    After writing the call transaction,use the FM FORMAT_MESSAGES.
    LOOP AT t_msg INTO fs_msg.
        CALL FUNCTION 'FORMAT_MESSAGE'
          EXPORTING
            id        = fs_msg-msgid
            lang      = sy-langu
            no        = fs_msg-msgnr
            v1        = fs_msg-msgv1
            v2        = fs_msg-msgv2
            v3        = fs_msg-msgv3
            v4        = fs_msg-msgv4
          IMPORTING
            msg       = w_message
          EXCEPTIONS
            not_found = 1
            OTHERS    = 2.
           WRITE:
             / W_message.
      ENDLOOP.                     
    Declare the fieldstring fs_msg and table t_msg,then the values will be populated.
    Regards,
    jaya

  • How do I get Pages doc from Mac mini into iCloud

    Created document in Pages on my desktop (mac mini / lion). What's best way to get doc to iCloud for iPhone /iPad acces?

    Use iCloud.com in a web browser or iTunes to sync files. You could also try e-mail or DropBox.

  • How get all sAMAccountName from LDAP?

    Good day ... i'm find this ...
    declare
    -- Adjust as necessary.
    l_ldap_host VARCHAR2(256) := &&;
    l_ldap_port VARCHAR2(256) := &&;
    l_ldap_user VARCHAR2(256) := &&;
    l_ldap_passwd VARCHAR2(256) := &&;
    l_ldap_base VARCHAR2(256) := 'dc=&&,dc=&&,dc=&&';
    l_filter varchar2(100) := '(&(sAMAccountName=*))';
    l_retval pls_integer;
    l_session dbms_ldap.session;
    l_attrs dbms_ldap.string_collection;
    l_message dbms_ldap.message;
    l_entry dbms_ldap.message;
    l_attr_name varchar2(256);
    l_ber_element dbms_ldap.ber_element;
    l_vals dbms_ldap.string_collection;
    l_raw dbms_ldap.binval_collection;
    l_result varchar2(100);
    begin
    -- Choose to raise exceptions.
    dbms_ldap.use_exception := true;
    dbms_ldap.utf8_conversion := false;
    -- Connect to the LDAP server.
    l_session := dbms_ldap.init(hostname => l_ldap_host, portnum => l_ldap_port);
    l_retval := dbms_ldap.simple_bind_s(ld => l_session, dn => l_ldap_user, passwd => l_ldap_passwd);
    -- Get all attributes
    l_attrs(1) := 'sAMAccountName'; -- retrieve all attributes
    l_retval := dbms_ldap.search_s(ld => l_session
    ,base => l_ldap_base
    ,scope => dbms_ldap.scope_subtree
    ,filter => l_filter
    ,attrs => l_attrs
    ,attronly => 0
    ,res => l_message);
    if dbms_ldap.count_entries(ld => l_session, msg => l_message) > 0
    then
    -- Get all the entries returned by our search.
    l_entry := dbms_ldap.first_entry(ld => l_session, msg => l_message);
    <<entry_loop>>
    while l_entry is not null
    loop
    -- Get all the attributes for this entry.
    dbms_output.put_line('---------------------------------------');
    l_attr_name := dbms_ldap.first_attribute(ld => l_session
    ,ldapentry => l_entry
    ,ber_elem => l_ber_element);
    <<attributes_loop>>
    while l_attr_name is not null
    loop
    -- Get all the values for this attribute.
    l_vals := dbms_ldap.get_values(ld => l_session, ldapentry => l_entry, attr => l_attr_name);
    <<values_loop>>
    for i in l_vals.first .. l_vals.last
    loop
    dbms_output.put_line('ATTIBUTE_NAME: ' || l_attr_name || ' = ' || substr(l_vals(i), 1, 200));
    end loop values_loop;
    l_attr_name := dbms_ldap.next_attribute(ld => l_session
    ,ldapentry => l_entry
    ,ber_elem => l_ber_element);
    end loop attibutes_loop;
    l_entry := dbms_ldap.next_entry(ld => l_session, msg => l_entry);
    end loop entry_loop;
    end if;
    -- Disconnect from the LDAP server.
    l_retval := dbms_ldap.unbind_s(ld => l_session);
    dbms_output.put_line('L_RETVAL: ' || l_retval);
    end;
    If i use filter '(&(sAMAccountName=*))' (me need get all 'sAMAccountName')
    ERROR at line 1:
    ORA-31202: DBMS_LDAP: LDAP client/server error: Sizelimit exceeded
    ORA-06512: at "SYS.DBMS_SYS_ERROR", line 86
    ORA-06512: at "SYS.DBMS_LDAP", line 1457
    ORA-06512: at "SYS.DBMS_LDAP", line 234
    ORA-06512: at line 28
    How fix it ?
    Thanks all.
    p.s. I'm beginner Developer Oracle 10g

    Probably some workaround needed. Hopefully this one works: http://www.freelists.org/archives/oracle-l/04-2006/msg01100.html

  • How get all photos from photo streams without iPhoto

    Hi to make A long story short, I lost a Hard Drive with iPhoto on it... Including all my baby's pics ... However I can still see them in the photo streams on my idevices.. First off without that Mac how can just grab all the photos off photo stream without iPhoto?
    Secondly, if I can install iPhoto on another machine or drive will that help or hurt me? Will all the photos show up under my Apple ID and can I just copy them or am I running any risk of deleting the streams?
    Is my only option to copy photos from photo stream a few at a time? And does that not repush them back up to the stream and erase older photos?
    Thank you for any help!!
    Yes I know I am a complete idiot for not backing up or using online backup service... 

    If you create a new library on another Mac, set its Photo Stream preferences to
    and log into your iCloud account on that Mac and enable Photo Stream,  the Photo Stream photos will automatically be imported into the new library. It can take a while depending on how many photos are in the stream.
    When you're done log out of your iCloud account and copy the library to a flash drive or DVD (if small enought) till you get your new drive. 
    OT

  • Function module to get order data from delivery

    hi ,
    is there any function module to which i can pass the delivery number and get the order number (s) and other data .
    basically i want the order currency.
    pls help.
    <removed by moderator>
    Edited by: Mike Pokraka on Aug 21, 2008 9:44 AM

    Hi Surendra,
    If your requirement is just to retreive the Order number for a given delivery then you can go with following:
    Just go to LIPS table, there you can get the Order Number and ITEM from VGBEL and VGPOS fields for given Delivery Number VBELN.
    You can also do the same by using VBFA table.
    Also have a look to the following thread:
    Re: Getting sales order number against Delivery Number
    Hope this will help.
    Regards,
    Nitin.

Maybe you are looking for

  • Best approach to create a security environment in Java

    I need to create a desktop application that will run third party code, and I need to avoid the third party code from export by any way (web, clipboard, file io) informations from the application. Somethig like: public class MyClass {     private Stri

  • Can Google be hacked by Skype extn in Chrome?

    Hi, I've been trying to get a response on various forums across the web without success. If this is a stupid question then I don't mind being told so. About a week ago my Gmail reported unusual activity from an IP address not normally associated with

  • Wifi option not showing in laptop

    Hlo sir,I have purchased hp probook 450 G2 laptop ..and also downloaded and installed all the drivers with their latest versions..but wifi options is not there in my laptop...plz help me to fix it

  • Internet Explorer 11 & SSRS ReportViewer

    I just happened to notice that the SSRS reportviewer print command button which is an ActiveX control is no longer visible after installing IE11. Does anyone have experience the same? Microsoft, can you provide any ideas/solutions?

  • I'm trying to make a "Submit" button for my existing UIPickerView. Help!

    Hi there! I've been tearing my hair out and searching the web high and low for an answer to a question I have about UIPickerView. I was hoping that perhaps you could help me out! I'm trying to make a "Submit" button for my existing UIPickerView. I've