Calling the standard program in program and getting its output in int table

Hi there,
I have a requirement, where I need to call the standard program (of transaction CJI3) in my Y program. CJI3 transaction produces a ALV GRID output. I need to use that data for further processing. I am getting following problems:
1. I tried to use SUBMIT ... EXPORTING TO MEMORY statement. I need to pass the company code for the selection, but the company code is in the dynamic selection. So not getting how to pass them.
2. Just a doubt. Can we export the ALV GRID to the memory an retrieve it back using import?
3. I did tried to use SUBMIT .....  statement using only the parameters which are on the selection screen. However the control went to CJI3 transaction and gave an error message 'Please select "from database" or "from archive" '. Did not understood that, any IDEA?
Or is there any other way with which I can accomplish my requirement of getting the data in my program to manipulate, other than SUBMIT.
Points will be rewarded.
Thanks,
Ganesh Khumse

Hi,
point 1:
SUBMIT ... EXPORTING TO MEMORY will never work, because it displays the information in an ALV grid and that grid is waiting for user interaction for manipulating the information.
point 2:
no, you cannot export the content of an ALV grid to the memory
point 3:
must you get records in an internal table or must you feed the transaction, so that this one performs a task ??  for first option read below and for the other option you might work with BDC and Transaction Recorder.
what you have to do is read the code of transaction CJI3 in order to understand what it does, where the information is read from and what is the internal table that passes the values to the ALV Grid. You might find a user exit in the code for manipulating that information or you might create an enhancement point if there´s no user exit.

Similar Messages

  • How to call the Standard Program in our ZPROGRAM?

    Hi Frieds can you tell me the procedure how to call the Standard program
    in z----
    program and we have to get the data from standard one to our customer program.
    Thanks in advance,
    madan mohan.

    Hi,
    *Submit report but export resultant list to memory, rather than
    *it being displayed on screen
    SUBMIT zreport EXPORTING LIST TO MEMORY.
    Once report has finished and control has returned to calling
    program, use function modules LIST_FROM_MEMORY, WRITE_LIST and
    DISPLAY_LIST to retrieve and display report.
    *Example Code (Retrieving list from memory)
    DATA  BEGIN OF itab_list OCCURS 0.
            INCLUDE STRUCTURE abaplist.
    DATA  END OF itab_list.
    DATA: BEGIN OF vlist OCCURS 0,
            filler1(01)   TYPE c,
            field1(06)    TYPE c,
            filler(08)    TYPE c,
            field2(10)    TYPE c,
            filler3(01)   TYPE c,
            field3(10)    TYPE c,
            filler4(01)   TYPE c,
            field4(3)     TYPE c,
            filler5(02)   TYPE c,
            field5(15)    TYPE c,
            filler6(02)   TYPE c,
            field6(30)    TYPE c,
            filler7(43)   TYPE c,
            field7(10)    TYPE c,
          END OF vlist.
    SUBMIT zreport EXPORTING LIST TO MEMORY.
    CALL FUNCTION 'LIST_FROM_MEMORY'
      TABLES
        listobject = itab_list
      EXCEPTIONS
        not_found  = 4
        OTHERS     = 8.
    CALL FUNCTION 'LIST_TO_ASCI'
      EXPORTING
        list_index         = -1
      TABLES
        listasci           = vlist
        listobject         = itab_list
      EXCEPTIONS
        empty_list         = 1
        list_index_invalid = 2
        OTHERS             = 3.
    IF sy-subrc NE '0'.
      WRITE:/ 'LIST_TO_ASCI error !! ', sy-subrc.
    ENDIF.
    Regards
    Sudheer

  • How can I call the jFreeChart to plot graph and get the result in Servlet?

    I want to use jFreeChart to plot time series graph, and then output the result in Servlet. How can I call the jFreeChart to plot graph and get back the result? Any source code for example? Thanks a lot!!

    Dave,
    ServletDemo1 and others were not in the distribution that I got (jfreechart-0.9.4). I found them under the premium demos somewhere in com/refinery/chart/demo/premium, but could not compile. They're complaining, among other things, about missing classes/packages com.refinery.date.SerialDate and com.refinery.ui. Am I using a wrong version of jfreechart?
    Thanks,
    -Alla
    There is a very simple servlet demo in the JFreeChart
    distribution:
    src/com/jrefinery/chart/demo/ServletDemo1.java
    This simply sends back an image to the browser.
    A second demo, which embeds the chart in an HTML page
    is:
    src/com/jrefinery/chart/demo/ServletDemo2.java
    src/com/jrefinery/chart/demo/ServletDemo2ChartGenerator
    java
    ...includes a time series chart as one of three
    options.
    Regards,
    Dave Gilbert
    JFreeChart Project Leader
    http://www.object-refinery.com/jfreechart/index.html

  • Call tcode KSB1 in a custom program and modify its output

    I was searching the forum for finding a way to create a program that has all details from KSB1 and some details from CJ13 (WBS details) and found some related posts. But none of the posts had any details on how to actually achieve this.
    I have to do a similar thing of getting the KSB1 output and add WBS details for each line item and then give the final output.
    If you have already done this before, please elaborate on the steps how you achieved it.
    Please specify the SUBMIT that you had written to call KSB1. If I can have all details from KSB1 in my memory, then I can read that in my program and add WBS details and give the output.
    Below is what I am doing but it gives the same error as one of you had - transaction code not defined.
    DATA: FCODE TYPE SY-TCODE VALUE 'KSB1'.
    SUBMIT RKAEP000 WITH SY-TCODE = FCODE.
    Any help would be appreciated. Thanks.
    Regards,
    Shipra

    Hi,
    try this code it will work..
    the data is stored in txtlines format the data by the field wise.
    * Data Declaration
      DATA:lt_listobject TYPE TABLE OF abaplist,
        l_tab_lines TYPE i.
      DATA: txtlines(1024) TYPE c OCCURS 0 WITH HEADER LINE.
      SUBMIT rkaep000                      "the program name
         USING SELECTION-SET 'BPC TEST'          "Pass varint BPC Test
               EXPORTING LIST TO MEMORY AND RETURN.
    * Read list from memory into table
      CALL FUNCTION 'LIST_FROM_MEMORY'
        TABLES
          listobject = lt_listobject
        EXCEPTIONS
          not_found  = 1
          OTHERS     = 2.
      IF sy-subrc  0.
    *   Error in function module &1
      ENDIF.
    *Spool content in Ascii format
      CALL FUNCTION 'LIST_TO_ASCI'
        TABLES
          listobject         = lt_listobject
          listasci           = txtlines
        EXCEPTIONS
          empty_list         = 1
          list_index_invalid = 2
          OTHERS             = 3.
      CALL FUNCTION 'WRITE_LIST'       "Display report same as in KSB1... else not required
      TABLES
        listobject = lt_listobject
      EXCEPTIONS
        empty_list = 1
        OTHERS     = 2.
    CALL FUNCTION 'LIST_FREE_MEMORY'
      TABLES
        listobject = lt_listobject.
      LOOP AT txtlines.   "data will be stored in this..
        " split the txtlines-tdline with | and move into another internal table and do the validation...
      endloop.
    Prabhudas
    Edited by: Prabhu Das on May 20, 2009 11:28 PM

  • Error while calling the standard Program

    Hi,
    I am using the Program <b>RMDATIND</b>, While executing the program ,I am getting an error as  <b>The field MARC-AUSDT is not ready for input and was therefore not transfered. </b>.  What exactly this means?
    the message type used is MG. I have tried to trace this Error, in the program, I am uable to get this. Please help me, to sort out this problem.
    Thanks
    Manju

    ThankQ solved

  • How do you sign up for the MORE program and get the 50MG for free?

    I was told that if you signed up for the MORE - Cloud program you will get 50mg for Free?  I didn't receive that.  Anyone know how that works?

        Hello skyles!
    I have great news! If you have the More Everything plan, you get 25GBs of cloud storage. That's a bunch more room than 50MBs! Here's a link to check it out: http://vz.to/1eTSQHd
    Thanks,
    ChristinaB_VZW
    Follow us on Twitter @VZWSupport

  • Execute linux command and  getting its output in java

    i want to run a simple command from java: telnet localhost 8649 > report.txt
    how can I do this.

    See java.lang.ProcessBuilder

  • Customer Statement (Standard Program and Scripts)

    Hi All ABAPers,
    Can anyone tell me the standard programs and their tcodes used for Customer statement with the smartform and sap script names?

    Custom statement Prog Name: RFKORD11
    Script name: F140_CUS_STAT_01 & F140_CUS_STAT_02
    Statements would be printed via FBL5N.
    Edited by: Alexander on Jul 1, 2009 12:00 PM

  • How to change call to the function module in the standard program

    Hi Guru,
    My requairment is to create the new Z function module  ZJ_1B_IM_NF_DOCUMENT_FUNCTION in the MM07MFJ1 program.
    I have created the Z Funtion module,
    plz provide me the info how to change the call to the new custom FM from the standard program.
    Points will be given to the ans.

    You use SE38 to change out the code.  When you try and change it you will get a popup asking you for a Key, since you are changing SAP Code.  If you have a Developers key you have to go to the SAP Service Marketplace and tell SAP that you are changing this code in order to get they key.  After this every time you do support packs you run the risk of this getting overlaid and you will have to change it back, also if you have a problem and SAP sees that you customized this code they probably won't spend any time on your problem.

  • Why doesn't apple have a file of events that ties to the iCal program and the Address book file? By having that relationship it seems that you could call up all of the events tied to a customer while in the address book or likewise call up all of the even

    Why doesn't apple have a file of events that ties to the iCal program and the Address book file? By having that relationship it seems that you could call up all of the events tied to a customer while in the address book or likewise call up all of the events tied to a contact that was in the iCal program as a scheduled meeting. Even in the to do's you could easily look back at the events tied to an individual so as to bring yourself up to speed with what you were doing with the individual in mind.

        I definitely understand your concern and I apologize for all the frustration. Verizon Wireless has a strong customer commitment to delivering the best from our service and staff. I am disappointed to hear the service you received did not reflect this commitment.
    I definitely want to help get to the bottom of this and further assist you. Please reply to my direct message so I can access your account and further assist. I am sure we can get this resolved.
    JohnB_VZW
    Follow us on Twitter @VZWSupport

  • Where can we find the standard program for scripts and smartform for vl02

    where can we find the standard program for scripts and smartform for vl02
    regard,
    anil

    If it is a standard Script Output see that all config in NACE tcode was done correctly and in the Application document the output type was properly defined and attached to a medium, partner and all communication related things like printer name, when to print the output and number of messages etc are entered in the document
    the go to the related application Tcode
    (for sales order goto VA02 or VA03)
    (delivery -VL02N or VL03N)
    for Invoice VF02 or VF03
    for PO -goto ME9F
    enter doc number, Issue Output to -> screen/printer
    then see the output
    step 1 : copy the z layout into testing client thru SCC1.
    step2 : go to se71 and check modified layout.
    step3 : if it is under logistics.. go to TCODE "NACE".
    u will see various applictions for each business process.
    there u have configure ur related layout according to requirments,
    for example u consider for Request fo Quatation..
    there is APPLICATION called "EA"
    click and enter into it. configure it with ur requirments, for help consult with ur functonal consaltant, and save it.
    step 4 : goto tcode ME9A for requst for quatation(RFQ).
    step 5 : enter test data avalable and check it with message display.
    it is same for other applications like Contract agreament --> ME9k
    invoice --> vl02n
    and goes on..
    Reward points for useful Answers

  • I'm trying to download the latest version of iTunes and get the message "There is a problem with this Windows Installer package. A program required for this install to complete could not be run." I have no clue what to do with this.

    I'm trying to download the latest version of iTunes and get the message "There is a problem with this Windows Installer package. A program required for this install to complete could not be run." I have no clue what to do with this to resolve the issue. Thanks for any help!

    Repair your Apple software update.
    Go to START > ALL PROGRAMS > Apple Software Update. If it offers you a newer version of Apple Software Update, do it but Deselect any other software offered at the same time. Once done, try another iTunes install
    If you don't find ASU, go to Control Panel:
    START > CONTROL PANEL/ > Add n Remove Programs, highlight ASU and click CHANGE then REPAIR

  • Tried to access programs and get Error: 16 message. What's the problem? Please help!

    Tried to access programs and get Error: 16 message. What's the problem? Please help! Photoshop, photoshop elements, Dreamweaver - none of my Creative Cloud apps will start-up, since my last update. I need to access these programs for jobs I'm working on.

    Hi wdriver,
    It seems like due to some unknown reason permission from the Licensing folder is removed. Please try launching any of the apps by right clicking and select Run as an Administrator, it should fix the issue by doing that.
    Please let us know if it helps.
    Regards,
    Abhijit

  • I signed up for the edge program and need to send back my old phone.  The instructions say I need to put it in the edge bag provided with my new phone order, but no bag is in the box.  Can I get one at a store?  Please respond!!

    I signed up for the edge program and need to send back my old phone.  The instructions say I need to put it in the edge bag provided with my new phone order, but no bag is in the box.  Can I get one at a store?  Please respond!!

        monkeybuttqueen,
    Thank you so much for reaching out to us today. I hope you are enjoying the new device! I do apologize that you didn't get the proper info sent to you to send back your old device. You can always print a label online from My Verizon. You can do that at www.verizonwireless.com/printlabel Pleaes keep us posted if you have any questions or concerns.
    KevinR_VZW
    Follow us on Twitter @VZWSupport

  • IBook quit working.  I removed it and cannot relode it to my Ipad.  What do I do to reload the program and get it to download my purchases?

    iBook quit working.  I removed it and cannot relode it to my Ipad.  What do I do to reload the program and get it to download my purchases?

    It is possible that there is a problem with the files sessionstore.js and sessionstore.bak in the Firefox Profile Folder.
    Delete the sessionstore.js [2] file and possible sessionstore-##.js [3] files with a number and sessionstore.bak in the Firefox Profile Folder.
    *Help > Troubleshooting Information > Profile Directory: Open Containing Folder
    *http://kb.mozillazine.org/Profile_folder_-_Firefox
    Deleting sessionstore.js will cause App Tabs and Tab Groups and open and closed (undo) tabs to get lost, so you will have to create them again (make a note or bookmark them).
    See also:
    *[1] http://kb.mozillazine.org/Session_Restore
    *[2] http://kb.mozillazine.org/sessionstore.js
    *[3] http://kb.mozillazine.org/Multiple_profile_files_created

Maybe you are looking for

  • OIM 9.1 Post Installation problem

    Hi, I have installed OIM 9.1 with Oracle application server. But I am not able to change the keypassword of .xlDatabaseKey as mentioned in installation document. I have executed this first and get storepass changed successfully: keytool -storepasswd

  • Request forward with a PDF file is not working in 8.1 SP2?

              Hi,           I have a servlet that forwards the request to a pdf file. The code works fine           in WL61. However when I ran the servlet in WL8.1SP2, all I get is a blank page.           However, instead of PDF I forward the request to

  • Why does my Internet keep closing

    Why does my Internet keep closing

  • WiFi Problems w/ OS X 10.4.11 and Speedport W 502V DSL Modem/Router

    We just moved to Germany again, so went to Deutsche Telekom (DT) for Internet/phone access. They sold us a Speedport W 502V DSL Modem/Router with manuals--all in German, as DT does (DT offers NO support in English; some would argue they offer no cust

  • Quiz scoring incorrect

    Hi A user has taken a quiz in a course. He failed the first time and so he did it again this time getting 100% of the questions correct. On his score page though it shows he has passed with a score of 88%. Is it taking his first attempt into account?