How to read/get the document attached to PO line item

Hi experts,
I got a requirement wherein I need to read/get the document attached at PO line item and to send that document through mail as an attacment .
please suggest me how to proceed on this.

actually your are picking up the correct data from Table EKET (EKET-EINDT) but your are printing that in item data loop for EKET might have already executed in your script and the header of that internal table consist the last entry of the table so for that. Fetch the delivery date explicite from the Table EKET when your in item level processing and print that.
For Example u can use this code.
To print you have write the this code in Script item level printing window "MAIN" window
Following perform is called to get the line item delivery date in PO
{/: PERFORM GET_DEL_DATE IN PROGRAM ZPerform_prog
/: USING &EKPO-EBELN&
/: USING &EKPO-EBELP&
/: CHANGING &DEL_DATE&
/: ENDPERFORM}
{* Dellivery date &DEL_DATE& }
write the below code in the Z program "ZPerform_prog"
{ FORM get_del_date  TABLES in_par STRUCTURE itcsy
                         out_par STRUCTURE itcsy.
  READ TABLE in_par WITH KEY 'EKPO-EBELN'.
  CHECK sy-subrc = 0.
  $_po_no = in_par-value.
  READ TABLE in_par WITH KEY 'EKPO-EBELP'.
  CHECK sy-subrc = 0.
  $_po_line = in_par-value.
  SELECT *
  FROM eket UP TO 1 ROWS WHERE ebeln EQ $_po_no AND ebelp EQ $_po_line.
    $_del_date = eket-eindt.
    CALL FUNCTION 'CONVERT_DATE_TO_EXTERNAL'
      EXPORTING
        date_internal            = eket-eindt
      IMPORTING
        date_external            = $_del_date
      EXCEPTIONS
        date_internal_is_invalid = 1
        OTHERS                   = 2.
    READ TABLE out_par WITH KEY 'DEL_DATE'.
    CHECK sy-subrc EQ 0.
    out_par-value = $_del_date.
    MODIFY out_par
                INDEX sy-tabix.
    CLEAR : $_po_no , $_po_line ,$_del_date.
  ENDSELECT.
ENDFORM.                    "GET_DEL_DATE }

Similar Messages

  • How do I get the "Document" tab to appear in the toolbar?

    How do I get the "Document" tab to appear on the "Adobe Reader" toolbar?

    There is no way to add that. All changes to the Adobe Reader toolbar can be found here:
    View->Show/Hide/Toolbar items

  • How can we get the document id at event close?

    Hi All!
    I wanted to perform some actions at document close on the document file that has been saved to disk. To make sure that I am perfoming these actions on the right document, in case the user does a close all if multiple documents are open, I thought of getting the document id of the document which is closing. But I am having problems getting the document id from the descriptor I get at the close event call back function. How can I get the document id from this descriptor?
    Pls guide.
    Thanks!

    Hi Sandy,
    This should be no different than any other form of completing it. You can bind the Actual Agent back to your WF, and you could also bind SY-UZEIT if you need have the completion time in a WF container element.
    If you are talking about reading this afterwards, the agent is in SWWWIHEAD-WI_AAGENT.
    Hope that helps,
    Mike

  • How can i get the document full path in S_TieDocument?

    I create a new S_TieDocument and override 2 methods:
    extendedPreInsert and extendedPostInsert
    how can i get the document full path in these 2 methods?
    (e.g. if i use the system user to upload a new file named 'test.file' in system root path /home/system, and i want to get the document full path '/home/system/test.file', how to get it?
    anybody know it, pls tell me, thanks a lot.
    java source is as below
    package oracle.ifs.server;
    import oracle.ifs.beans.Document;
    import oracle.ifs.beans.DocumentDefinition;
    import oracle.ifs.beans.LibraryObjectDefinition;
    import oracle.ifs.beans.LibrarySession;
    import oracle.ifs.beans.PublicObject;
    import oracle.ifs.common.AttributeValue;
    import oracle.ifs.common.IfsException;
    import oracle.ord.itech.cmsdk.ws.view.EmbeddedCMSDKWebServicesWSStub;
    public class S_TieDocument extends S_Document
    public S_TieDocument(S_LibrarySession session, S_LibraryObjectData data)
    throws IfsException
    super(session, data);
    public S_TieDocument(S_LibrarySession session, java.lang.Long classID)
    throws IfsException
    super(session, classID);
    // Overrides
    public void extendedPreInsert(OperationState opState,
    S_LibraryObjectDefinition def)
    throws IfsException
    // Always call super
    super.extendedPreInsert(opState, def);
    // Get the LibrarySession
    S_LibrarySession session = getSession();
    def.setUserSetAttribute("CUSTOMATTRIBUTE",
    AttributeValue.newAttributeValue(""));
    //how can i get the document file full path here?
    public void extendedPostInsert(OperationState opState,
    S_LibraryObjectDefinition def)
    throws IfsException
    // Get the LibrarySession
    S_LibrarySession session = getSession();
    //how can i get the document file full path here?
    }

    In the new version of Numbers this option is not available.  You will have to type the file name into the header yourself.  You can post feedback to Apple using the menu item "Numbers > Provide Numbers Feedback"
    or use Numbers2.3 which should be in the folder "/Applications/iWork '09" if you previously had it installed

  • How do I get a document to alphabetize each line?

    how do I get a document to alphabetize each line, in Pages?

    Download the Wordservice from here http://www.devontechnologies.com/download/products.html
    Read the instruction on how to install. Then you can see the service in Pages > Services. If you cna't see the list you have to activate by clicking on Services.

  • How to get the Delivery date in PO line Item in SAPScript

    Hi Gurus,
    I am working on PO Script (MEDRUCK). I copied the Standard to a Z form. ZMM_MEDRUCK, Now I need to print the the Header text at the end of MAIN window.  I put Iem number along with the other line Item informmation like stanadrd PO Script MEDRUCK. I also want to show the delivey date with line Item, so Itried to use EKET-EINDT but it is returning the delivery date of last line item, means while printing the first line and other information it is showing the delivery date of the last line item, I tried with the  PEKPO-EINDT it is also not working.
    Can any body suggest me how i can get the delivery date for the respective line Item  ?
    Regards
    Sony

    actually your are picking up the correct data from Table EKET (EKET-EINDT) but your are printing that in item data loop for EKET might have already executed in your script and the header of that internal table consist the last entry of the table so for that. Fetch the delivery date explicite from the Table EKET when your in item level processing and print that.
    For Example u can use this code.
    To print you have write the this code in Script item level printing window "MAIN" window
    Following perform is called to get the line item delivery date in PO
    {/: PERFORM GET_DEL_DATE IN PROGRAM ZPerform_prog
    /: USING &EKPO-EBELN&
    /: USING &EKPO-EBELP&
    /: CHANGING &DEL_DATE&
    /: ENDPERFORM}
    {* Dellivery date &DEL_DATE& }
    write the below code in the Z program "ZPerform_prog"
    { FORM get_del_date  TABLES in_par STRUCTURE itcsy
                             out_par STRUCTURE itcsy.
      READ TABLE in_par WITH KEY 'EKPO-EBELN'.
      CHECK sy-subrc = 0.
      $_po_no = in_par-value.
      READ TABLE in_par WITH KEY 'EKPO-EBELP'.
      CHECK sy-subrc = 0.
      $_po_line = in_par-value.
      SELECT *
      FROM eket UP TO 1 ROWS WHERE ebeln EQ $_po_no AND ebelp EQ $_po_line.
        $_del_date = eket-eindt.
        CALL FUNCTION 'CONVERT_DATE_TO_EXTERNAL'
          EXPORTING
            date_internal            = eket-eindt
          IMPORTING
            date_external            = $_del_date
          EXCEPTIONS
            date_internal_is_invalid = 1
            OTHERS                   = 2.
        READ TABLE out_par WITH KEY 'DEL_DATE'.
        CHECK sy-subrc EQ 0.
        out_par-value = $_del_date.
        MODIFY out_par
                    INDEX sy-tabix.
        CLEAR : $_po_no , $_po_line ,$_del_date.
      ENDSELECT.
    ENDFORM.                    "GET_DEL_DATE }

  • How do you get the value of a selected list item?

    I have a drop-down list that the user can choose from. How do I get the value of what they selected? I thought I could do this by using the NAME_IN function, but I'm getting FRM-40105 Unable to resolve reference to item X. I don't know what I'm doing wrong.
    Thanks!

    Hi,
    You can use an WHEN-LIST-CHANGED trigger, attached to the list-item itself. And, in this trigger, you can use the name of the item to refer its value.
    For example:
    :block_name.list_item_name
    John

  • How do I get the Document ID for a BW Object?

    I'm trying to get the Logical and/or Physical Document numbers for BW_LO_META and BW_PH_META.

    RSA1/Document/Metadata.Search for your document, right click on it, properties.
    There you will find the logical and phyical document number (in the technical information tab).
    Regards,
    Fred

  • How can I get the CFL of PO Detail Line?

    Hi,Expert
    The issue is as the Title.
    Apperciate any valuable suggestion.
    Regards
    Eric Wang

    I explain it in detail .I want to get the PO line data by creating the CFL.
    The c# code as follows:
            private void AddChooseFromList() {
                try
                    SAPbouiCOM.ChooseFromListCollection oCFLs = null;
                    SAPbouiCOM.Conditions oCons = null;
                    SAPbouiCOM.Condition oCon = null;
                    oCFLs = oForm.ChooseFromLists;
                    SAPbouiCOM.ChooseFromList oCFL = null;
                    SAPbouiCOM.ChooseFromListCreationParams oCFLCreationParams = null;
                    oCFLCreationParams = ( ( SAPbouiCOM.ChooseFromListCreationParams )( SBO_Application.CreateObject( SAPbouiCOM.BoCreatableObjectType.cot_ChooseFromListCreationParams ) ) );
                    //  Adding 2 CFL, one for the button and one for the edit text.
                    oCFLCreationParams.MultiSelection = false;
                    oCFLCreationParams.ObjectType = "22";
    //{color:red}How can I directly get the PO detialline objectType  or in other way?{color}
                    oCFLCreationParams.UniqueID = "CFL1";
                    oCFL = oCFLs.Add( oCFLCreationParams );
                    //  Adding Conditions to CFL1
                    oCons = oCFL.GetConditions();
                    oCon = oCons.Add();
                    oCon.BracketOpenNum = 2;
                    oCon.Alias = "docstatus";
                    oCon.Operation = SAPbouiCOM.BoConditionOperation.co_GRATER_EQUAL;
                    oCon.CondVal = "O";
                    oCon.BracketCloseNum = 1;
                    oCon.Relationship = SAPbouiCOM.BoConditionRelationship.cr_AND;
                    oCon = oCons.Add();
                    oCon.BracketOpenNum = 1;
                    oCon.Alias = "cardcode";
                    oCon.Operation = SAPbouiCOM.BoConditionOperation.co_EQUAL;
                    oCon.CondVal = "scguan";
                    oCon.BracketCloseNum = 2;
                    oCFL.SetConditions( oCons );
                    oCFLCreationParams.UniqueID = "CFL2";
                    oCFL = oCFLs.Add( oCFLCreationParams );
                catch (Exception ex)

  • Get the Change log for ALV line items

    Hello Experts,
    I am using editable ALV table to display/change data. When user modifies data from ALV line items manually (direct entry), this change is recorded in get_context_change_log method of context node. Also in the screen I have one button, on click of this button I do some calculation for selected line items in action method and update the context node with new values. But with this second approach (button action) though values gets changed this is not recorded in to get_context_change_log of context node. I tried to use method add_context_attribute_change  in button action method to add attribute changes to change log tabel but it's not adding entries to change log. Does method add_context_attribute_change only works with OVS search helps and freely programmed value helps? And is there any other way for capturing changes(done by using action method and not manually) for ALV line items?
    Thanks & Regards
    Jayant

    Here is code:
    METHOD.
    This method is in component controller, which gets called from View Action method (on click * of button).
      FIELD-SYMBOLS:<lfs> TYPE  Data.
    *Data Declaration
      DATA lo_nd_cn_apc_item TYPE REF TO if_wd_context_node.
      DATA lit_apc_item TYPE wd_this->elements_cn_apc_item.
      DATA lo_el_cn_apc_item TYPE REF TO if_wd_context_element.
      data: l_component type ref to if_wd_component,
            l_context type ref to if_wd_context,
            lfd_added type abap_bool.
      CLEAR:lo_nd_cn_apc_item,lo_el_cn_apc_item.
      navigate from <CONTEXT> to <CN_APC_ITEM> via lead selection
      lo_nd_cn_apc_item = wd_context->get_child_node( name = wd_this->wdctx_cn_apc_item ).
      REFRESH:lit_apc_item.
      @TODO handle non existant child
      IF lo_nd_cn_apc_item IS NOT INITIAL.
        lo_nd_cn_apc_item->get_static_attributes_table( IMPORTING table = lit_apc_item ).
    get element via lead selection
        lo_el_cn_apc_item = lo_nd_cn_apc_item->get_element( ).
      ENDIF.
            l_component = wd_this->wd_get_api( ).
            l_context = l_component->get_context( ).
    Calculate Cost
      LOOP AT lit_apc_item ASSIGNING  <lfs>.
            <lfs>-cal_amount = ( <lfs>-cost_percent * <lfs>-sec_amount ) / 100.
            lfd_added = l_context->add_context_attribute_change(
                element              = lo_el_cn_apc_item
                attribute_name       = 'CAL_AMOUNT'
                new_value            = <lfs>-cal_amount
      ENDLOOP.
    Bind Table.
      lo_nd_cn_apc_item->bind_table( new_items = lit_apc_item set_initial_elements = abap_true ).
    ENDMETHOD.

  • How can i clear the vendor and customer open line items at a time same vendor as a customer of the company (same vendor same customer and equal invoices )

    my vendor and customer are same . purchase invoice due100000 and sales invoice amount is also 100000 at a time with any manual action , have any setting for cleared both vendor and customer line items at a time ...........

    X Ltd. will be Vendor & Customer.
    Purchase Invoice is booked under Vendor SAP number & Sales Invoice is booked under Customer SAP number. Then you can transfer amount from Vendor to Customer or vice versa with T-code F-04.
    Then if you have transferred amount from customer to Vendor (F-04), Vendor account will have two entries Debit & Credit. Then go for clearance with T-code F-44 clear Vendor.

  • How do I get the document to print;  although the printer prints other materials properly.

    Although the printer prints other documents properly; These files appear much to light and indistinct.

    You need to tell us more, so we can try to reproduce the problem or at least have some idea of  what you are talking about.
    No text is printing at all, or some is?
    It is only affecting Pages?
    Have you tried another application?
    Have you tried another printer?
    What printer and how are you printing to it?
    Are you printing wirelessly?
    Peter

  • How can I get the coordinates to draw a line?

    Hi,
    I want to draw a line. Here is a part of my Quell-code.
    public class Map extends JFrame {
    public Map() {
    super("Map");
    setSize(340, 340);
    MapPane map = new MapPane();
    getContentPane().add(map);
    class MapPane extends JPanel {
    public void paintComponent(Graphics comp) {
    Graphics2D comp2D = (Graphics2D)comp;
    comp2D.drawLine(0,0,340,340);
    Now, the line begins exactly top left in the edge, but ends not exactly down right in the edge of my Frame. Is there any possibility to determine the exact coordinates of the frame. I thought, if the size of the window is set by the setSize-Method to (340,340), the line ends exact
    in the edge (down right). See: comp2D.drawLine(0,0,340,340).
    Can somebody give me a piece of advice, please?
    Thanks, joletaxi

    Have you tried the getWidth() and getHeoght() methods to determine how long the line should be?

  • How can I get the open counts on file type items?

    One of the managers' point of interesting on Portal usage is to know how frequently items are opened to view.
    I need to preapre a report to show managers which items (file type) are opened most frequently? and who opened the item most?
    How can I do it?
    Thanks,

    The Apple Support Communities are an international user to user technical support forum. As a man from Mexico, Spanish is my native tongue. I do not speak English very well, however, I do write in English with the aid of the Mac OS X spelling and grammar checks. I also live in a culture perhaps very very different from your own. When offering advice in the ASC, my comments are not meant to be anything more than helpful and certainly not to be taken as insults.
    Are you saying that you bought a used or second hand Mac? In North America an open box Mac usually refers to a display model used in a store.
    There is mixed info on this issue. Some folks in the US have called Apple Care and requested that the iLife apps prebundled with this specific Mac be released from original owner's Apple ID so the new owner can Accept the apps into their Apple ID, with success. Folks in Europe report that when making the same request of Apple Care they are met with resistance and are unsuccessful.
    YMMV
    The sad thing is that if Apple Care will not release the apps, then the owner of a second hand Mac cannot even purchaase the apps on their Mac! To buy the apps with their own account, they would need to find an older Mac running at least OS X Snow Leopard 10.6.8 with a Mac App Store (MAS), that also has never had the MAS versions of the iLife apps installed on it.

  • How do I get the tag of a selected line in a tree control ?

    I am running LabVIEW 7.1.
    I want to be able to add a parent or sibling to a tree to a selected item in a tree.

    The tag of the selected item is actually the output of the tree control itself. If you create an indicator from the tree control, you will get a duplicate tree control (indicator), but if you wire the output into a string indicator, the tag of the selected item will show up. You can an item to the tree by wiring the tree reference into an invoke node, calling the method "Edit Tree Items: Add Item", and wiring the output of the tree control (which will be the tag of the selected item) into the "Parent Tag" terminal. This method will only let you add a child to an item, you cannot add a parent or sibling. Items cannot have multiple parents, so it wouldn't make sense to add a parent; and to add a sibling for the selected item, you could call the method "Navigate Tree: Get Parent" and pass the tag of the parent into the "Edit Tree Items: Add Item" method.
    Robert Mortensen
    Software Engineer
    National Instruments

Maybe you are looking for

  • Is it possible to change the priority of emails in my income folder?

    Hey everyone?! I want to change the priority of mails in my income folder.

  • ERROR in creating a Physical Standby Database

    Hello all, I am using a Windows Vista O/S and Oracle 10g Enterprise Edition. Both my primary and standby are on the same host. Created standby instance using oradim. I have followed instruction in the documentation and created a manual standby databa

  • Mac OS no longer found

    I have an iMac, circa 2004, running 10.5. the other day it crashed, and since then has not been able to boot. I get the apple icon and the spinning circle, then after awhile the fan goes crazy, but it never boots. Today I tried starting off the leopa

  • Purchase Info record Remainder field

    In Purchase Info Record we are giving the Remider in days, how it will be helpfull  in Business??

  • Hardware: SSD drives and scratch disks

    Hi, I am building a new system for Photoshop. Two quick questions: 1. I note in Adobe's system reqs it says Photoshop cannot be installed on flash-based storage devices. Does this include SSDs? Is there a genuine problem here (i.e. if my application