Execute this fm in a program

Hi Everyone,
I want to call this fm "BDL_SYSTEM_INFO" in a program and display the results. But unfortunately not at all able to do it. Since in the fm it refers to a structure "BDLSYSTINF" and tried to declare this in my prgram but stil get even get the results out of it.
Any help will be of great use to me.
Thanks,
Prashant.

Try this.  Works good in my system.
REPORT zrich_0001.
DATA: system_info TYPE TABLE OF bdlsystinf.
DATA: wa LIKE LINE OF system_info.
CALL FUNCTION 'BDL_SYSTEM_INFO'
  TABLES
    system_info = system_info.
LOOP AT system_info INTO wa.
  WRITE:/ wa-key, wa-value.
ENDLOOP.
Regards,
Rich Heilman

Similar Messages

  • How to execute this SQL Query in ABAP Program.

    Hi,
    I have a string which is the SQL Query.
    How to execute this sql Query (SQL_STR) in ABAP Program.
    Code:-
    DATA: SQL_STR type string.
    SQL_STR = 'select * from spfli.'.
    Thanks in Advance,
    Vinay

    Hi Vinay
    Here is a sample to dynamically generate a subroutine-pool having your SQL and calling it.
    REPORT dynamic_sql_example .
    DATA: BEGIN OF gt_itab OCCURS 1 ,
    line(80) TYPE c ,
    END OF gt_itab .
    DATA gt_restab TYPE .... .
    DATA gv_name(30) TYPE c .
    DATA gv_err(120) TYPE c .
    START-OF-SELECTION .
    gt_itab-line = 'REPORT generated_sql .' .
    APPEND gt_itab .
    gt_itab-line = 'FORM exec_sql CHANGING et_table . ' .
    APPEND gt_itab .
    gt_itab-line = SQL_STR .
    APPEND gt_itab .
    gt_itab-line = 'ENDFORM.' .
    APPEND gt_itab .
    GENERATE SUBROUTINE POOL gt_itab NAME gv_name MESSAGE gv_err .
    PERFORM exec_sql IN PROGRAM (gv_name) CHANGING gt_restab
    IF FOUND .
    WRITE:/ gv_err .
    LOOP AT gt_result .
    WRITE:/ .... .
    ENDLOOP .
    *--Serdar

  • How do you execute this program on a DVD in a PowerShell statement

    How do you execute this program on a DVD in a PowerShell statement?
    E:\path /program1

    You should be able to just type the command. You may need to quote the path.
    Don't retire TechNet! -
    (Don't give up yet - 12,950+ strong and growing)

  • Can someone execute this program?

    Can someone execute this program for me and tell me if it works correctly? My DOS is acting funny.
    look for these things:
    - accepts input from keyboard and places them into an array
    - continues to accept names until a blank name is entered
    - array can contain up to 15 names
    - after all names are entered, it displays the contents of the array
    and writes them to a file
    - output should be in 2 columns
    if you see a problem, please tell me how to fix it.
    import java.io.*;
    * the purpose of this program is to read data from the keyboard
    * and put it into a sequential file for processing by ReadFile
    * @author Maya Crawford
    public class Lab0
    * this function will prompt and receive data from the keyboard
    * @return String containing the data read from the keyboard
    * @param BufferedReader that is connected to System.in
    */ (keyboard)
    public static String getData(BufferedReader infile)
    throws IOException
    System.out.println("enter a name");
    return infile.readLine();
    * this is the main program which will read from the keyboard and
    * display the given input onto the screen and also write the data
    * to a file
    * @param Array of Strings (not used in this program)
    public static void main(String[] args)
    throws IOException
    int i;
    String[] outString = new String[16];
    DataOutputStream output=null;
    // this code assigns the standard input to a datastream
    BufferedReader input= new BufferedReader(new InputStreamReader(System.in));
    // this code opens the output file...
    try
    output= new DataOutputStream(new FileOutputStream("javaapp.dat"));
    // handle any open errors
    catch (IOException e)
    System.err.println("Error in opening output file\n"
    + e.toString());
    System.exit(1);
    // priming read......
    for(i=0;i<outString.length;i++)
    outString=getData(input);
    // this is the loop to continue while nnonblank data is entered
    while (!outString.equals(""))
    for(i=0;i<outString.length;i++)
    outString[i]=getData(input);
    outString[i] = input.readLine();
    System.out.println("Name entered was:"+ outString[i]);
    output.writeBytes(outString[i]+"\r\n");
    int rcol=(outString.length+1)/2;
    for(i=0;i<(outString.length)/2;i++)
    System.out.println(outString[i]+"\t"+outString[rcol++]);
    // flush buffers and close file...
    try
    output.flush();
    output.close();
    catch (IOException e)
    System.err.println("Error in closing output file\n"
    + e.toString());
    // say goodnight Gracie...
    System.out.println("all done");

    Ok, here is what I came up with. I commented most of what I changed and gave a reason for changing it. My changes aren't perfect and it still needs to be tweeked. When you run the program you have to hit the enter key every time once before you type a name. When you are done typing names hit the enter key twice and it will output the names entered into the array. Like I said, it isn't perfect, and that part you will need to fix.
    import java.io.*;
    * the purpose of this program is to read data from the keyboard
    * and put it into a sequential file for processing by ReadFile
    * @author Maya Crawford
    public class Lab0
         * this function will prompt and receive data from the keyboard
         * @return String containing the data read from the keyboard
         * @param BufferedReader that is connected to System.in
         */ //(keyboard)
         //On the above line where you have (keyboard), it wasn't commented out in your
         //program and it was throwing a error.
         public static String getData(BufferedReader infile)
         throws IOException
              System.out.println("enter a name");
              return infile.readLine();
         * this is the main program which will read from the keyboard and
         * display the given input onto the screen and also write the data
         * to a file
         * @param Array of Strings (not used in this program)
         public static void main(String[] args)
         throws IOException
              int i;
              String testString; // Created to hold the string entered by the user, because your
                                 // outString array wasn't working for that.
              String[] outString = new String[16];
              DataOutputStream output=null;
              // this code assigns the standard input to a datastream
              BufferedReader input= new BufferedReader(new InputStreamReader(System.in));
              // this code opens the output file...
              try
                   output= new DataOutputStream(new FileOutputStream("javaapp.dat"));
              // handle any open errors
              catch (IOException e)
                   System.err.println("Error in opening output file\n"
                   + e.toString());
                   System.exit(1);
              // priming read......
              testString = " ";  // Initialize testString
              int placeMark = 0; // to input the String entered by the user into the outString
                                 // array, it needs to know which position to enter it into.
              while (!testString.equals(""))
                   testString=getData(input);
                   testString = input.readLine();
                   System.out.println("Name entered was:"+ testString);
                   // Put the testString into the outString[] array.
                   // A lot of the time when you used outString you forgot to use the [x] to indicate
                   // which position you wanted to access.
                   outString[placeMark] = testString;
                   output.writeBytes(testString+"\r\n");
                   placeMark++;
            // Created a do/while loop to display the list of outString.
              int nextEntry = 0;
              do
                   System.out.println(outString[nextEntry]);
                   nextEntry++;
              }while(!outString[nextEntry].equals(""));
              // flush buffers and close file...
              try
                   output.flush();
                   output.close();
              catch (IOException e)
                   System.err.println("Error in closing output file\n"
                   + e.toString());
              // say goodnight Gracie...
              System.out.println("all done");
    }

  • You are not authorized to execute this application in SAP E-Recruit

    Hi,
    We are getting the below error while going to recruitment page for recruiter:
    "You are not authorized to execute this application"
    At the same time when we check in SLG1, we get the below errors:
    No candidate could be found for US E0023127
    The error occurred in program CL_HRRCF_CANDIDATE============CM003 line 361
    Apart from this we are not getting any dumps/traces in ST22/ST05/ST01.
    When we encountered this error for the first time, we executed the report RCF_CREATE_USER in SE38 and the problem was resolved.
    We got the error again 2 days back, after that also it got automatically resolved. But, now we are getting this error continuously.
    We also tried re-executing the report RCF_CREATE_USER and HRALXSYNC but no use.
    The service user (for recruiter) is a reference user from RCF_CAND_INT.
    We have also tried giving different roles and authorizations to the user.
    SAP_ERC_RECRUITER_CI_4
    SAP_RCF_RECRUITER
    SAP_ERC_REC_ADMIN_CI_4
    SAP_ALL
    We are in ECC 6 EHP 6 and we have a standalone EREC system with ERECRUIT 617 SP3.
    We are stuck at this point in our EREC project.
    Kindly provide your valuable suggestions for this issue.
    Thanks in advance!
    Regards,
    Khushboo

    Hello Khushboo,
    the message you are getting is a bit misleading as it is the standard behavior of the quick search if the user you are logged in as recruiter does not have a candidate assigned. So the message in SLG1 points into the correct direction.
    I am not sure what you are meaning by "the service user (for recruiter)". Although table T77RCF_ROLE allows to specify a reference user for all roles in eRec only the entries for internal and external candidates are actually used. So the authorization assignment for the recruiter specific roles has always to be done directy for each user. A reference user could be overwritten / reset to RCF_CAND_INT by the ALE.
    What bothers me a bit is the user name and that you mention RCF_CREATE_USER and HRALXSYNC at the same time. This might be the reason for your issue. Looks like you created a candidate for a user using RCF_CREATE_USER which is later transferred in the ALE from HR Core to eRec. This was not a good idea. RCF_CREATE_USER is only for creating project users when the HR core to eRec and for special users who need a candidate while do not have an employee id in HR core (e.g. WF-BATCH). This is why I always recommend to use non-production user Ids for everyone during project phase. Its been quite a time some of my projects did otherwise and I remember a similar issue with one of the customer admins. Everytime data for the user / employee was send in ALE the candidate / user was messed up.
    Getting this fixed was quite troublesome. In the end we had to dump the original candidate. We deleted all records between candidate object, central person, business partner and person object in HRP1001. By that time the customer was still on the old ALE version so today I would also delete all entries in HRP558X infotype tables for the employee. Then I would first try to finger the employee id (e.g. change the name, save, directly change it back, save again ) so it is transferred during the nightly processing of the change pointers and put in the IDoc. If this is not working I would try to transfer it again using PFAL.
    Kind Regards
    Roman     

  • WebADI: How to find out which integrator executed the upload PL/SQL program

    Hi,
    I understand that we can create a integrator to upload data to EBS and execute a PL/SQL program.
    Is there any way to find out which INTEGRATOR executed this PL/SQL program?
    Thanks.
    Regards

    Alternatively:
    select name, plsql_debug from sys.all_plsql_object_settings

  • How to execute dos command in Java program?

    In Perl, it has System(command) to call dos command.
    Does java have this thing?
    or any other way to execute dos command in java program?
    Because i must call javacto compile a file when the user inputed a java file name.

    Look in the Runtime class, it is implemented using the Singleton design pattern so you have to use the static method getRuntime to get its only instance, on that instance you can invoke methods like
    exec(String command) that will execute that command in a dos shell.
    Regards,
    Gerrit.

  • Dump while executing this Funciton Module PT_ARQ_REQLIST_GET.

    Hi,
    I am using the function module  PT_ARQ_REQLIST_GET to get the leave requests.
    when i execute this function module first time i am getting the values, when i come back and change the personal number in the import parameter and execute the same means it is throwing dump.(Message Type X) . This dump is coming because of the old session global variable(g_app_running) is not clearing.
    How to clear this?Is there any function modules to flush all the global variables which is in standard function modules.
    Or else. Is there any function module available for getting the Leave Requests.
    Regards
    Bala.

    Hi,
    If ur using this FM more than 1 time in program, then we con't do any thing...
    But if u r simply testing in SE37, then close that session and open new.
    if the FM is RFC enabled then, we can call in separate task.
    CALL FUNCTION - STARTING NEW TASK
    Kiran...

  • Is it possible to execute SAPGUI scripts from java program?

    Hi everyone..
         I need to develop an java applications that executes the SAPGUI script or any technique that execute set of transaction as client.
         Is it possible to execute SAPGUI scripts from java program? if so, how it can be achieved? is there any other technique to achieve above mention scenario?.
         it will be more helpful, if docs related to that are shared..
         Thanks in advance

    Oh, bummer. Would be much more convenient if I could just use iTunes for everything. Can't stand WMP. I wonder if WinAmp might be a good compromise?
    Thanks for this answer . . .
    Sharon

  • After executing this 'if' statement there is no further process...pls help.

    After executing this 'if' statement there is no further process...please help me to solve this problem...
    whats wrong with that query....
    if :SALARY_DETAILS.TOTAL_DAYS<=:SALARY_DETAILS.TOTAL_MONTHLY_DAYS AND
    :SALARY_DETAILS.TOTAL_DAYS>=(:SALARY_DETAILS.WORKING_DAYS+:SALARY_DETAILS.NO_OF_ABSENTS+:SALARY_DETAILS.LEAVES+:SALARY_DETAILS.LOP) then
    end if;

    Use dbms_output.put_line to trace our way through the program to see what is happening.
    From the information you provided different things can be happening.
    * the IF condition might evaluate to false and the if block is being bypassed
    * there is nothing to happen inside the IF block, or internal IF conditions are preventing anything from happening
    Put debugging messages both inside the IF block and outside to help figure out what is happening

  • I created table maintainace generator but while executing this in SM30.

    I created table maintainace generator but while executing this in SM30 it's giving following error. Error message " Conversion error"
    The program has been interrupted and cannot resume. Program "SAPLZ_DEV_AC_DAT_MOE" attempted to display fields on screen 0001.
    An error occurred during the conversion of this data.
    Table has following fields:
    MANDT          MANDT     CLNT     3     0     Client
    YEAR1          CHAR     4     0     Year
    SOLD_TO_PARTY     KUNRG     CHAR     10     0     Payer
    MATNR          MATNR     CHAR     18     0     Material Number
    JANACP          CURR     15     2     Jan Accural Plus.
    and reference field for JANACP is VBRK-WAERK.
    Can anyone help me on this.

    Hi,
    you have a field of type amount and need a referring currency field. You have chosen a VBRK field, but in SM30 you have no connection to a special VBRK entry because of a missing connection on key field VBELN.
    Either you create a currency field in your table, or (if possible) you have to add a foreign key relation to VBRK with a fixed VBELN (existing on all systems) to get the VBRK currency. But the second way is no good idea!
    You need a currency to get the right decimal point for your amiount.
    Regards
    Klaus

  • On my MacBook Pro, sometimes when I click to close tabs in Safari the button will not work.  I have to click on some other part of the screen and then it will.  This happens in other programs like Word/Excel for changing font, etc. Solution/Suggestions?

    On my MacBook Pro, sometimes when I click to close tabs in Safari the button will not work.  I have to click on some other part of the screen and then it will.  This happens in other programs like Word/Excel for changing font, etc. Solution/Suggestions?

    Start up in Safe Mode.
    http://support.apple.com/kb/PH4373

  • An attempt to open a pdf file with Photoshop Elements (version 12) resulted in a pop generated by the Photoshop Editor stated "Impossible to execute this operation (opening file) because one of the specified colour is not managed". Is there any mean to ad

    An attempt to open a pdf file with Photoshop Elements (version 12) resulted in a pop generated by the Photoshop Editor stated "Impossible to execute this operation (opening file) because one of the specified colour is not managed". Is there any mean to adapt the file to make its reading possible?
    Did somebody get the same problem?

    It is a high order probability that your SQL's report generator is creating the PDF, not Acrobat (which by design and EULA cannot be used in as/with server).
    That the report generator outputs to an old-old version of PDF bears this out.
    Wiki articles on PDF are very nice for those high level intro summaries.
    To know / understand PDF you purchase and study the ISO Standard for PDF (ISO 32000-1:2008).
    Rather than "PDF validation" you may want to consider addressing the appearent root cause of the problem(s).
    You can change the email2fax application to one that can deal with older PDF versions.
    You can change the report generator to one that can output to the ISO Standard.
    (Perhaps the in-use application can be configured to output to the current version of PDF (i.e., the ISO Standard).
    Be well...

  • Can't download itunes update.  Keep getting this error message:  THe program can't start because MSVCR80.dll is missing from your computer.  Try reinstalling the program to fix this problem

    Can't download itunes update.  Keep getting this error message:  THe program can't start because MSVCR80.dll is missing from your computer.  Try reinstalling the program to fix this problem

    I researched the advice on the link provided by b noir as well as very similar advice from apple support: http://support.apple.com/kb/TS5376. It worked for me (for now).
    Some things of note:
    I did all of the things requested by the link I provided
    My computer WOULD NOT uninstall Apple Mobile Device Support. I had to manually remove the folder (also as instructed by the url)
    I also uninstalled MobileMe. Was a little different than removing the other apps. Follow instructs provided here: http://support.apple.com/kb/HT2992
    I did not uninstall iCloud
    I have to admit it was a bit scary removing all those things. Is important to note that when re-installing Apple, follow steps to do so as Administrator (the right-click thingy and whatnot).
    Hope this helps!

  • Firefox 4 does not function with Robo Form. This is a must program for me. Do I need to go back to using IE?

    I downloaded and installed Firefox 4. While many new features are excellent, Firefox no longer recognizes or accepts Robo Form Software. This is a must program for me.

    The roboform-firefox-3-4-frozen.xpi adaptor does not work for firefox 4.0 final release if you have roboform 6.x.
    To continuate to use roboform 6.x you will have to downgrade firefox to version 3.6.
    To use firefox 4.0 you need roboform 7.x.
    Roboform promissed "for life" upgrades, but they failed. Now they want you buying the upgrade to version 7.

Maybe you are looking for

  • Data in a narrative view.

    Sorry if this is simple. Just want to display the multiple values from a report prompt, not dashboard prompt, in the report. My effort has taken me to the narrative view and am using @12 to display the values in the column which has been filtered. Bu

  • How to use the same Entity EJB to access the same table in 2 syb databases

    We are trying to convert an application to J2EE. We have the following concern. The application requires the use of 10 sybase databases with identical tables. One database per branch. We would like to be able to use the same set of entity EJBs to acc

  • Time Machine Drive on Network

    It seems like something has changed with 10.5.6 or so with respect to the ability to use networked drives. I have a PowerMac G5 that I have been using as a server with an second internal (IDE) drive that I have been using for time machine backups fro

  • Name Error: The domain name does not exist

    Hi, I get this error when I try to create a view inside a web dynpro from se80 transaction " Name Error: The domain name does not exist. " Can anyone help me to solve this error ? Thanks !!

  • Installing OS 10.5.4 On a 17" iMac intel

    Hi, I have an 17" iMac intel that had 10.4.11 installed on it. I am trying to install 10.5.4. I got to the Language screen , selected English. Hit continue. A window popped up stating, "This software cannot be installed on this computer." With OK and