Programming code

Hi
    All,can someone help me with programming code for material master.....As i have to download the material data from SAP system to Excel file...
Thanks in advance
Edited by: Csaba Szommer on Sep 20, 2011 1:15 PM

Hi,
You need to make Inner Join of Tables MARA,MARC,MARD,MAKT.
Use Query Builder -SQVI, and make a Program with the inner join of above mentioned or you can add your choices also.
Generate a Program ,you can find the option in SQVI itself .
Note- You can access this program from your id itself and if you want to share the same to across users then generate a program and make Z tcode with the help of abapor.
Hope this will resolve your query.
Regards,
Sandesh Sawant

Similar Messages

  • In VB Programming code -- How to access the formula for suppressing a field

    In VB Programming code -- How to access the formula for suppressing a field
    I am using Crystal Reports 2008 v1
    Using VB code, I am attempting to modify a Crystal Report before exporting it into a PDF format and then displaying it on the Web.
    My problem is that I am unable to access the formula used to dynamically suppress a field.
    The following code is working:
    mySections = rd.ReportDefinition.Sections
    For Each mySection As CrystalDecisions.CrystalReports.Engine.Section In mySections
       ' myFieldToChange is a String set to the text of the field I need to adjust the Suppression
       iloop = 0
       For Each RecObj As CrystalDecisions.CrystalReports.Engine.ReportObject In mySection.ReportObjects
               If mySection.ReportObjects.Item(iloop).Name.ToLower = myFieldToChange Then
                   myTextObject = CType(mySection.ReportObjects.Item(iloop), CrystalDecisions.CrystalReports.Engine.TextObject)
                   myTextObject.Text = "new field text goes here"
                   mySection.SectionFormat.EnableSuppress = True
                   '  Here is where I want to change the formula for the Suppression
                End if
                iloop = iloop + 1
        Next
    Next
    I can not find any reference to the actual suppression formula in the SDK help file.
    Note, the EnableSuppress can be set to True for False, but if there is a formula for dynamic suppression, the True or False value is overwritten.  The results of the formula determine the suppression.
    Is there a way to reference this formula.  I know that I can put on in using the Crystal Report Designer software, I need to modify this formula using VB code and the SDK.

    Hello, Mark;
    If you are using the ReportDocument object you do not have access to the Conditional Suppression formula. You can get around it by using a formula field in the report for the supression and then using the FormulaField code to change it at runtime.
    If you want to change the supression condition directly at runtime you need to use RAS and the ReportClientDocument.
    Elaine

  • Generation of program code for the ABAP Query

    Dear all,
    In the creation of the ABAP query, in the final step of SQ01, Query- more functions- generate program is made.
    Why the program code is generated for the ABAP query? please  give the logical explaination for the same.
    Thanks and Regards,
    Prash

    Prash,
    a) Do you mean Program code does not have significance in query creation?
    No it does not mean this.  All queries run based on an ABAP program.  In the standard query editing process, when you save and execute the query, you will automatically re-build the existing ABAP program as necessary.  You do not need, though, to execute the menu steps you outlined in order to build, maintain, or execute the query.  It is only there for special purposes, as outlined above by Jürgen
    b) Can we see the program code generated in any transaction?
    From any screen, System > Status.  Place your cursor on the field in "Program (screen)".  Double click.
    Rgds,
    DB49

  • Syntax highlighted program code in keynote?

    Is there any easy way insert programming code (in my case Ruby code) into a slide so it shows up with syntax highlighting and formating suitable for the code?
    I.E. so it looks like the highlighted code in Textmate or other gui editors?

    TextWrangler (and thus presumably BBEdit) do preserve their syntax colouring when PDFed, as does Taco HTML Edit. My guess is that this is capability is an app-by-app feature.
    If you were desperate for a PDF output to Keynote, you could always copy the text from Textmate and paste it into the freeware TextWrangler. You would likely have to adjust the default syntax colouring to match Textmate, but that would be relatively straightforward.

  • What to add to an program code in order to trigger an background job

    Hi there
    I wander what to add to an program code in order to trigger an event which consequently can trigger an background job
    thx in advance

    Check this code:
    DATA : v_jobhead LIKE tbtcjob.
    DATA : v_jobcount LIKE tbtcjob-jobcount.
    DATA : v_eventparm LIKE tbtcjob-eventparm.
    DATA : v_flg_released TYPE c.
    DATA: e_error.
    DATA: running LIKE tbtcv-run.
    TYPES: esp1_boolean LIKE boole-boole.
    CONSTANTS: esp1_false TYPE esp1_boolean VALUE ' ',
               esp1_true  TYPE esp1_boolean VALUE 'X'.
    CONSTANTS: true  TYPE boolean VALUE esp1_true,
                              false TYPE boolean VALUE esp1_false.
    PARAMETERS: v_jobnam LIKE tbtcjob-jobname,
                v_report LIKE sy-repid,
                v_varian LIKE  raldb-variant,
                v_uname  LIKE sy-uname.
    START-OF-SELECTION.
    * add the new job
      CALL FUNCTION 'JOB_OPEN'
           EXPORTING
    *            delanfrep        = 'X'
                jobname          = v_jobnam
           IMPORTING
                jobcount         = v_jobcount
           EXCEPTIONS
                cant_create_job  = 1
                invalid_job_data = 2
                jobname_missing  = 3
                OTHERS           = 4.
      IF sy-subrc <> 0.
        e_error = true.
      ELSE.
        CALL FUNCTION 'JOB_SUBMIT'  " or you can use SUBMIT statement as well.
             EXPORTING
                  authcknam               = v_uname
                  jobcount                = v_jobcount
                  jobname                 = v_jobnam
                  report                  = v_report
                  variant                 = v_varian
             EXCEPTIONS
                  bad_priparams           = 1
                  bad_xpgflags            = 2
                  invalid_jobdata         = 3
                  jobname_missing         = 4
                  job_notex               = 5
                  job_submit_failed       = 6
                  lock_failed             = 7
                  program_missing         = 8
                  prog_abap_and_extpg_set = 9
                  OTHERS                  = 10.
        IF sy-subrc <> 0.
          e_error = true.
        ELSE.
          CALL FUNCTION 'JOB_CLOSE'
               EXPORTING
    *               EVENT_ID                    = IC_WWI_WORKPROCESS_EVENT
    *               EVENT_PARAM                 = V_EVENTPARM
    *               EVENT_PERIODIC              = 'X'
                    jobcount                    = v_jobcount
                    jobname                     = v_jobnam
                    strtimmed                   = 'X'
               IMPORTING
                    job_was_released            = v_flg_released
               EXCEPTIONS
                    cant_start_immediate        = 1
                    invalid_startdate           = 2
                    jobname_missing             = 3
                    job_close_failed            = 4
                    job_nosteps                 = 5
                    job_notex                   = 6
                    lock_failed                 = 7
                    OTHERS                      = 8.
          IF sy-subrc <> 0.
            e_error = true.
          ELSE.
            DO.
              CALL FUNCTION 'SHOW_JOBSTATE'
                EXPORTING
                  jobcount               = v_jobcount
                  jobname                = v_jobnam
    *            IMPORTING
    *         ABORTED                =
    *         FINISHED               =
    *         PRELIMINARY            =
    *         READY                  =
    *              running                =
    *         SCHEDULED              =
               EXCEPTIONS
                 jobcount_missing       = 1
                 jobname_missing        = 2
                 job_notex              = 3
                 OTHERS                 = 4.
              IF sy-subrc <> 0.
                e_error = true.
                MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                        WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
              ENDIF.
              IF running = space.
                EXIT.
              ENDIF.
            ENDDO.
          ENDIF.
        ENDIF.
      ENDIF.

  • How to see programming Code for UCCX Script

    Hi All,
    How can I  see the programming Code for UCCX Script? I have a script and want to see its Code , something like :
    int sum = 0;
    boolean alternate = false;
    boolean isValid = false;
    try {
    int i = 0;
    for (i = ccnumber.length() - 1; i >= 0; i--) {
      int n = Integer.parseInt(ccnumber.substring(i, i + 1));
      if (alternate) {
       n = n * 2;
       if (n > 9) {
        n = (n % 10) + 1;
      sum += n;
      alternate = !alternate;
    isValid = (sum % 10 == 0);
    } catch (Exception e) {
    return -1;
    return (isValid == true ? 1 : 0);
    thanks,
    Hamed

    You're not going to find code per se, unless you have some java class you wrote and then you would only see the code if you had the source java file.  The script is the only interface you get for "code".
    david

  • What is some simple program code to set up a database

    Could someone provide some simple data base program code for the HP50G with comments on procedure by the programmer? 

    Hi there,
    Have you tried animating the Clip property in the timeline? You'd probably want each clipping rectangle in its own symbol, and then control the symbol playback from the click event on the symbol instance.
    If that won't work for your purposes, there's a slight error in your code.
    Rather than:
    sym.$("clipTangle2").css("clip:rect(0, 159px, 0, 0)");
    Try:
    sym.$("Rectangle").css("clip", "rect(0, 159px, 0, 0)");
    hth,
    Joe

  • Authorization group - to restrict other users to not see the program code

    Hi,
    I have developed report program. Is it possible to restrict the other users to don't see the program code.
    Thanks in advance.
    Regards,
    Eswar

    Eswar:
    SAP does not allow you to restrict access to your report programs. Anybody with the right autorizations can see your programs.
    There are some tricks to achieve someting like that. Tricks consists basically in write your code without enter between lines. I think there are no effective way in SAP or ABAP to protect programs source code from curious eyes.
    Ex.:
    REPORT ztest. TABLES: ztable. DATA: g_var1...
    Regards.
    Rafael Rojas.

  • Table for the program code

    Hi Freinds,
    is there any table to store the  program code , i mean whatever we write in  SE 38 will it be stores any data base tables? we have one option to get the code that is READ REPORT INTO ITAB. other than this is there any database tables for this?
    Regards,
    Tirumal.

    Hi Reddy,
      Table: REPOSRC there is only programm name but not code by using program name you can get code into your report by using Read Report syntax.
    Example,
    parameters: p_pname type reposrc-PROGNAME.
    data: Begin of table occurs 10,
             line(150),
            end of table.
    read report p_pname into table.
    loop at table.
      write / table.
    endloop.
    Plzzzzzz Reward if useful,
    Mahi.

  • Need a simple example program code to use SF_EXAMPLE_01

    Hi all,
    I have just try to learn smartforms. As i have SAP NW4 for learning.
    I found SF_EXAMPLE_01 in the system.
    Can any body help me out how to use this example in abap program code?
    Thanks.
    rob

    Smart Forms, try this steps.. it will teach you how to create smart form and how to use it.
    1) Tcode --> SmartForms
    2) Form name --> Z_SF_TEST Create
    3) Under Global settings
    a) Form Interface  
        Table Tab
       ITAB LIKE EKPO
    b) GLOBAL Definitions
    WA_NETPR LIKE EKPO-NETPR
    In smart forms if we want to display quantity and currency fields. We can't directly display currency field and quantity fields
    For that we have to create an extra variable in global definitions
    Ex: netpr FIELD of EKPO
    CREATE program lines and specify WA_NETWR = itab-netpr.
    4) RT CLick on main Window
       CREATE --> TABLE
      Click Table painter
    DEFAULT %LTYPE will be Created
    a) If you want more like Header footer etc add by rt click on %LTYPE1
    Table (Tab)
    %LTYPE  Radio(SELECT) 5 CM 5 CM 6 CM
    CLICK on DATA (Tab)
    INTERNAL TABLE ITAB LIKE ITAB
    5)RT click on table control and create --> program lines
    General attribute (Tab)
    INPUT PARAMETER               OUTPUT PARAMETER
    itab                               WA_NETPR
    Code Area
    WA_NETWR = ITAB-NETPR.
    6) RT CLcick on table ctl and create 3 text to display the fields
    a) % text1 +button(insert field)
       FIELD name &itab-ebeln&
    Output options (tab)
    Check New line   LINETYPE   %Ltype1
    check new cell
    b) % text2
       & itab-ebelp&
    output options
    check new cell
    c) % text2
       & wa_netpr&
    output options
    check new cell
    Report ac
    Tables ekpo.
    Data: itab1 like ekpo occurs 0 with header line.
    select * into table itab1 from ekpo.
    Call function module   "to know function module name goto smartform and execute the smart form name it will give you the function module name.
    If your question is answered, close the thread and reward all useful answers...
    Regards,
    Sairam

  • Remote program code

    I need remote program code for HD-DVR Motorola DCX 3501/E385/012/500.When red all on button is pressed, all devices turn off, but after 2 sec. set top turns back on?

    ebroski wrote:
    I need remote program code for HD-DVR Motorola DCX 3501/E385/012/500.When red all on button is pressed, all devices turn off, but after 2 sec. set top turns back on?You should post the question in the Xfinity TV Services forum.... this is the Voice Services area..

  • I want to see the spawned program code..

    Hi,
    I wanted to see the spawned program code. Can you please give me the solution.
    Is there any software to read the code?.
    Thank you,
    jagdish.
    Message was edited by:
    Jagdish

    I haven't been able to see the code of a spawned program, but I have had some success in looking for SQL statements, etc in spawned programs, as these are typically stored in text strings in the original source code. I use the Unix strings command, as in the following example (which is not a concurrent program,but is a compiled executable):
    strings -a $FND_TOP/bin/FNDLIBR | grep -i fnd_file_private
    While I can only guess at the logic of how it does it, this shows that FNDLIBR calls several of the procedures in the FND_FILE_PRIVATE package.
    It really depends on what you are trying to find out - to get all of the database work performed by a spawned concurrent program, it is simpler to just enable tracing on the program and run a request. If you are looking for code logic (as in, in what case does FNDLIBR call fnd_file_private.outfile_get), as Shiv has said, about all you have to rely on is the documentation. Unfortunately, the documentation is not normally at that detailed a level.

  • How to view changes made to Program code in PRD?

    Hi all,
    I'm currently auditing SAP landscape management and noted the following in the PRD environment:
    1. table logging is disabled (transaction SM31)
    2. profile logging is disabled
    3. transaction SM20 doesn't give anything
    4. don't have access to changes with SECR transaction.
    My question is how can I have a population of changes made directly in program codes on PRD? (without going trhough the transport manager).
    SAP R/3 release: 4.5B
    Thanks for your help

    Hi Rainatou,
    Change logs are disabled in PRD considering the database load and performance.
    The changes to program code can be better viewed in DEV by displaying the program,Utilities,Version management.
    If you want to compare to code in DEV and PROD you can use split screen editor (SE39).
    Regards,
    Babul.

  • How to paste program code

    I write about programming, and thus I paste a lot of programming code into my articles. I've written that code elsewhere, since I test it first.
    I'm trying to find out how do this in the easiest way in Dreamweaver. I've found Paste Special, but it works so-so.
    Say that I have this in my Perl script:
    if (a > 27) {
       print "Looks like a is greater than 27 today\n";
    Then I want to take that piece of code and paste into my HTML file, so that I get:
    <pre>if (a &gt; 27) {
        print &quot;Looks like a is greater than 27 today\n&quot;;
    }</pre>
    If I use Text only, all line breaks are thrown away I get all on a single line:
    if (a > 27) {   print "Looks like a is greater than 27 today\n";}
    Which is useless. If I instead ask to retain the structure and line breaks, and select Preformatted before I go ahead I get this:
    <pre>if (a &gt; 27) {<br>
    print &quot;Looks like a is greater than 27 today\n&quot;;<br>
    }</pre>
    That is, the original line breaks are retained and <BR> tags are added. At the same time the indenting is lost. Sure, I can go through the code to clean it it up, and while removing the <br> tags can be done with Find/Replace, restoring the indentation is more work.
    It should also be clear from the example, that doing the pasting in Code view is not a good option.
    Am I missing something, or does Dreamweaver not offer any better alternative?

    Thanks Nancy, but I don't think your example will work for me.
    If I understand it correctly, you code style works, because:
    You have only one level on indentation.
    You always have blank line before next line in the outermost column.
    All paragraphs start in column 1.
    None of these are true for the code I work with. As one example look at http://www.sommarskog.se/dyn-search-2008.html#sp_executesql.
    The workaround I have employed is to do this particular operation in Expression Web, which has Paste Text->One <pre> formatted paragraph. It's a good thing that Dreamweaver detects that the file has changed outside Dreamweaver.
    (And if you wonder why I try out Dreamweaver when I have Expression Web already, the answer is simple: EW is buggy.)

  • Java program code paper work

    Where to find industrial standards for Java program code paper work (indents, large or small characters, brackets position on page, capital letters for constants etc.)?

    Usually, this will depend where you're working. Each has its own standards , but here's Sun's coding standards:
    http://java.sun.com/docs/codeconv/html/CodeConvTOC.doc.html

  • I see programming codes intermixed with emails. any fixes? email removed

    just that. programming codes mixed in with emails. do i need to set something?

    Firefox doesn't do email, it's a web browser.
    If you are using Firefox to access your mail, you are using "web-mail". You need to seek support from your service provider or a forum for that service.
    If your problem is with Mozilla Thunderbird, see this forum for support.
    [http://www.mozillamessaging.com/en-US/support/] <br />
    or this one <br />
    [http://forums.mozillazine.org/viewforum.php?f=39]

Maybe you are looking for

  • How do I find the Library folder on time machine back up disk

    I had to rebuild my iMac and wanted to start fresh.  I'm useing mountain lion and had everything backed up with time machine.  The problem that i'm having is that I can't get the aplication support floder to show up in the library folder that you fin

  • 11.1.0.7 patch kit DBUA goes slow at 33% and runs for 21 hours +

    Trying to upgrade 11.1.0.6 Windows Server 2003 32-bit install to 11.1.0.7 and finding that while the installer completes OK, when I get to running the DBUA part of the upgrade (interactively), it runs fine to about 33% (execrm.sql it would seem from

  • Variable screen not Populating

    Hi, We have Variable 'Order Admin' in the Query. in Developement and Quality Instance, On variable screen  when you click on Variable its giving list of Order Admin  but when we run same Query in production we are not getting list of Order Admin . We

  • Org.w3c.dom.Element to javax.xml.soap.SOAPElement

    I have a org.w3c.dom.Element that I want to insert into an existing SOAPBody using public SOAPElement addChildElement(SOAPElement element). How can I turn the org.w3c.dom.Element into a javax.xml.soap.SOAPElement so that I can do that? Steve Watson

  • How to run a command line window from code?

    In an application I need to run a dll file with a few arguements. These arguements can be given in the command line window. The execution of the dll file will return a string that i need to get (for the parsing etc). 1. How can I open a command line