About report program

text = 'ASDFGHJKL'
if i need varaible of charaters of size 4 from position 3.
e.g v_text = DFGH
how to write for that.

HI,
you can do by moving with position and lenght,
example: DATA TIME TYPE T VALUE '172545'.
WRITE TIME.
WRITE / TIME+2(2).
CLEAR TIME+2(4).
WRITE / TIME.
The output appears as follows:
172545
25
170000
First, the minutes are selected by specifying an offset in the WRITE statement. Then, the minutes and seconds are set to their initial values by specifying an offset in the clear statement.
<b>in your case:</b>
write:/ V_TEXT = TEXT+2(4).
see the below link for more info on the offsets
http://help.sap.com/saphelp_46c/helpdata/en/fc/eb341a358411d1829f0000e829fbfe/content.htm
Thanks
Sudheer

Similar Messages

  • Tutorials on Report Programming!

    Hi Experts,
    I am new to ABAP and learning through fully on help.sap.com. Right now i want to learn about Report Programming. Both Classical and Interactive. I searched in this forum but i fail to get it. So can anyone provide me tutorials on report Programmming (Classical and Interactive).
    Thanks in Advance,
    Guru

    Hi,
    please check out the links below it might be helpful to you
    http://www.is-edu.hcmuns.edu.vn/WebLib/Books/Database/0-672-31217-4/index.htm
    http://cma.zdnet.com/book/abap/ch03/ch03.htm
    http://www.sapbrainsonline.com/TUTORIALS/TECHNICAL/ABAP_tutorial.html
    ********please reward points if the information is helpful to you***********

  • About call a webdynpro program in R/3 report program.

    hi,experts
    i am searching a report program which was written by my colleague who have left my project.
    there is one button displayed on the ALV tool bar of this report program.when i push this button,a message are sent to protal and displayed in tasks,then i log into portal,double click the message,a webdynpro program will be called and used to further process.
      i really want to know how i can decide to use which webdynpro program to be call and used. for example,now the R/3 program use the webdynpro program named AAA, i copy BBB from AAA,and want to replace AAA  by BBB in this program, how?
      i don't know how to meet this simple requirement such as upwards and confused about it. hope anyone can show me some information.
    thanks in advance.

    It is not that simple :).
    Actually there is a workflow involvedi n this. On clicking the alv button a workflow gets triggered and the task appears in the SAP Inbox which anyway displayed in the UWL of the Portal.
    just try changing the SWFVISU transaction entry for that particular task and change the applicaiton name to your new application name and re-register the system in the UWL Admin Pagem, i hope it works.
    If you did not find any entry in SWFVISU, the developer might have exported the XML in UWL Administration page in the portal down load it identify the old applicaiton name nad replace it with your new application name and upload the XML
    [Helpful link|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/d0731bbc-810b-2a10-7fb8-900f16fd3c7d]
    Abhi

  • The Problem is about Standard Back Button Function in Report Program

    The Problem is about Standard Back Button Function in the Report Program.
           In the Report,First call screen Then Using "write" output some information,That is ok. but In the GUI When I press back button that is standard button,it exit screen to program.
           My question is how can i do When i press back button,the screen can be back forward first screen instand of exit screen to program.  Thanks .

    This problem is solution.I call screen using T-code and submit report In PAI,at last return to PAI.That is OK.

  • The Problem is about Standard Back Button Function in the Report Program.

    The Problem is about Standard Back Button Function in the Report Program.
    In the Report,First call screen Then Using "write" output some information,That is ok. but In the GUI When I press back button that is standard button,it exit screen to program.
    My question is how can i do When i press back button,the screen can be back forward first screen instand of exit screen to program. Thanks .

    Hi,
    You can define your own PF-STATUS and in that assign the function code for BACK button anything except 'BACK'.
    The code would somewhat look like this:
    SET PF-STATUS 'TEST'.
    write : itab-col1,
               itab-col2.
    in the PF-STATUS 'TEST', assign the function code to BACK button as 'BCK'.
    Now in your program you can use the event AT USER-COMMAND.
    In this you can handle the functionality of BACK button.
    Hope this helps.
    Regards,
    Himanshu

  • About unprotect a report program's source code

    Hi all,
    I have protect the report program using a report program. In this process if i change/display a report program it doesn't displays its source code but it execute that program.The whole source code is Stored in an internal table.but the real problem is that when i open that program's source code it protected and doesn't appears.
    I doing this by using '*@#@@[SAP]'. This is provided by SAP to protect a report program.
    Now my query is ' there is any thing to unprotected that program' ?
    Suggest.
    Thanks
    Sanket sethi.

    > <i>This is provided by SAP to protect a report program.</i>
    That is an <u>incorrect</u> statement. That "feature" might be removed without any prior notice since it's causing more harm than it provides benefit.

  • About unprotect a report program

    Hi all,
    I have protect the report program using a report program. In this process if i change/display a report program it doesn't displays its source code but it execute that program.The whole source code is Stored in an internal table.but the real problem is that when i open that program's source code it protected and doesn't appears.
    I doing this by using '*@#@@[SAP]'. This is provided by SAP to protect a report program.
    Now my query is ' there is any thing to unprotected that program' ?
    Suggest.
    Thanks
    Sanket sethi.

    Strange?
    Did you try to ask the QA person whether they still have a copy of the report documentation?
    Alternately, try to use version management in the development system to find a version of the report prior to adding the string. I assume you tested a version of the report before doing this; so there should be performance tests / code inspector information on it.
    Also, are you sure that the string was used to protect the code?
    Cheers,
    Julius
    PS: Actually, I am a bit surprised that this thread is already here for 5 days without being commented on... perhaps you want to try the GRC forum?

  • SAP Query - Report program generation

    Hello all,
    Now I'm developing SAP queries through Tr-cd:SQ01.
    As you know, every time (re)defining queries, we have to (re)generate the selection screen report programs, containing the input parameter for output format along with other input parameters.
    The problems are:
    1.
    I CAN select other layout formats on the selection screen in one system(Dev System) when I define the output format as "SAP List Viewer" in Tr-cd:SQ01 and generate the report program  (,while I CANNOT select other layout formats on another system, QA System.)
    2.
    When selecting other formats than "SAP List Viewer"
    in Tr-cd:SQ01, so difference between these two systems, that is, I can select all formats options on the selection screen.
    3.
    After redefining the formats as "SAP List Viewer" on the QA System, We CANNOT select other layout formats again while I remain to be able to select all options on the DEV system.
    I think the report program generation function in QA system operates normally, while there is somthing wrong with DEV system.
    Do you have any idea about this phenomenon?

    Hello Thomas, I appreciate your quick response and apologize for my late reply.
    After recieving your sugestion I continued process of trial & error only to find that the setting to generate the report program had been changed to old one for some reason.
    You can change the setting in the following way:
    Tr-cd:SQ02
    Settings -> Global Settings
    Check (or Uncheck) the box of "Always use the old report structure."

  • A report program

    hello,
    i hav created report program ....in which i hav printing data in two colums(sections)
    of a page....im printing first 'first column'...n then 'second one' ( i.e. im printing left side of page and then right side of page )  n  i hav declaired <b>line-count 60</b> ...while printing on left side if page ends due to line-count is set.....im not able to print on right of that page because page is set to next page( and it start printing from next page on right side as it is changed)...i want know that .... is it posiible to come back to previous page while printing in report program .....(as i hav mentioned problem ).....i want to know the code for that if possible....
    Regards,
    Gajanan Galande

    You can print first the right and then the left, using the BACK or  SKIP TO LINE <n>.  BACK can be used with or without RESERVE.   Also don't forget about POSITION <n> to set the output column.
    BACK returns to the first line of the current page after TOP-OF-PAGE
    You will have to monitor the number lines you print because once you overflow, you cannot BACK to a prior page.
    I hope this helps. 
    Look up in the ABAP help for examples of using these.
    Bob
    (Points are appreciated)

  • Report program in background

    Hello ppl,
    I have created a report program which will always be scheduled as a background job.
    It downloads the data to application server everytime it is executed.
    I want to know how should I display to the user any error which may occur while execution eg. file could not be opened or data not found, etc.
    Can the statement 'message e101...' be used for background also?
    If so, how will the message be displayed.
    Please help.
    Thanks.

    Hi
    If reords not found or report is not giving any result you can always send the report output to user in
    mail so that user can get the data or error message in the mail.
    You have capture and send the error message to the user in the mail.
    For example:
    *If records not found
    *get the error message pass it as a text to email function module and
    send it.
    you can use the FM CALL FUNCTION 'SO_OBJECT_SEND'
    If some problem happens while the execution of your report then your basis team will inform you about that error.
    Regards
    Neha

  • How to Populate Internal table data to Table Control in a Report Program

    Dear All,
           How to Populate Internal table data to Table Control in a Report Program? It is a pure report program with out any Module pool coding involved, which is just used to display data. Till now it is being displayed in a report. Now the user wants the data to be displayed in a table control. Could someone tell me how to go about with this.
    Thanks in Advance,
    Joseph Reddy

    If you want to use a table control, you will need to create a screen.
    In your report....
    start-of-selection.
    perform get_data.  " Get all your data here
    call screen 100. " Now present to the user.
    Double click on the "100" in your call screen statement.  This will forward navigate you to the screen.  If you have not created it yet, it will ask you if you want to create it, say yes.  Go into screen painter or layout of the screen.  Use the table control wizard to help you along the process.  It will write the code for you.  Since it is an output only table control, it will be really easy with not a lot of code. 
    A better way to present the data to the user would be to give it in a ALV grid.  If you want to go that way, it is a lot easier.  Here is a sample of the ALV function module.  You don't even have to create a screen.
    report zrich_0004
           no standard page heading.
    type-pools slis.
    data: fieldcat type slis_t_fieldcat_alv.
    data: begin of imara occurs 0,
          matnr type mara-matnr,
          maktx type makt-maktx,
          end of imara.
    * Selection Screen
    selection-screen begin of block b1 with frame title text-001 .
    select-options: s_matnr for imara-matnr .
    selection-screen end of block b1.
    start-of-selection.
      perform get_data.
      perform write_report.
    *  Get_Data
    form get_data.
      select  mara~matnr makt~maktx
                into corresponding fields of table imara
                  from mara
                   inner join makt
                     on mara~matnr = makt~matnr
                        where mara~matnr in s_matnr
                          and makt~spras = sy-langu.
    endform.
    *  WRITE_REPORT
    form write_report.
      perform build_field_catalog.
    * CALL ABAP LIST VIEWER (ALV)
      call function 'REUSE_ALV_GRID_DISPLAY'
           exporting
                it_fieldcat = fieldcat
           tables
                t_outtab    = imara.
    endform.
    * BUILD_FIELD_CATALOG
    form build_field_catalog.
      data: fc_tmp type slis_t_fieldcat_alv with header line.
      clear: fieldcat. refresh: fieldcat.
      clear: fc_tmp.
      fc_tmp-reptext_ddic    = 'Material Number'.
      fc_tmp-fieldname  = 'MATNR'.
      fc_tmp-tabname   = 'IMARA'.
      fc_tmp-outputlen  = '18'.
      fc_tmp-col_pos    = 2.
      append fc_tmp to fieldcat.
      clear: fc_tmp.
      fc_tmp-reptext_ddic    = 'Material'.
      fc_tmp-fieldname  = 'MAKTX'.
      fc_tmp-tabname   = 'IMARA'.
      fc_tmp-outputlen  = '40'.
      fc_tmp-col_pos    = 3.
      append fc_tmp to fieldcat.
    endform.
    Regards,
    Rich Heilman

  • Want to create a Quotation through Report programming

    Hi Expert,
    I need to create an Quotation in my ERP system through report programming. I just want to know, what are the FM Used for this purpose or any idea about this. I really welcome your great ideas.
    <removed by moderator>
    Thanks and Regards,
    Shakun
    Moderator message: please search for available information/documentation before asking.
    Edited by: Thomas Zloch on Oct 23, 2010 6:05 PM

    Hi Niji,
    refer to the following link:
    /people/kevin.wilson2/blog/2007/08/31/what-mechanisms-are-available-to-you-in-order-to-create-a-business-object-event
    hope this will help you.........

  • Itz possible to call one report program into another program

    hi guys,
                i had a doubt that can i call a report program into another report program by declaring their name into the second program like as we calling Includes ,function modules and like class and their methods .
    if  anybody done this or know how to do this,  give me the details and explination about this  friends
    if it possible with screenshots and codings
    Thanks & Regards
    Saigijeo

    Please search before posting, do not ask basic questions here.
    Always do your own work before turning to the community with specific problems.
    Thread locked.
    Thomas
    [Asking Good Questions in the Forums to get Good Answers|/people/rob.burbank/blog/2010/05/12/asking-good-questions-in-the-forums-to-get-good-answers]

  • Can report program trigger a job and then a job trigger another report?

    Actually I'd like one ABAP4 report program trigger another ABAP4 report program and yesterday some people here suggested me to use SUBMIT statement at the end of the source program, but if we don't want to touch the source code of the source program, what would be the best way to trigger another report program, in this way: report program1 -> job -> report program2?
    or report program1 -> event -> job -> report program2?
    Thanks

    Hi Kevin,
    I know this is a late reply and you probably already solved your problem. However, the new Job Scheduling capabilities of SAP NetWeaver might be something to look at. You can find more information about this on SAP Service Marketplace under quick-link job-scheduling (http://service.sap.com/job-scheduling)
    Kind regards,
    Edwin Esser

  • Report Programs/Includes

    Hi all,
    I am looking for the function module that may be used
    to create Report Programs/Include files.
    I am aware of the INSERT REPORT statement. But it
    creates a 'Report Program' of Application type 'Basis'.
    I want to create an Include file of other Application
    type.
    Please help.
    Thanks in Advance.

    Hi Anandaraja,
    don't worry about the program type created - wht ever it is you can INCLUDE it anyway.
    If you still want to change, you may modify the object catalog entry after creating.
    Regards,
    Clemens

Maybe you are looking for

  • Anyone found an answer - Dual display stuttering when 1 display turned off

    Hello, I'm having exactly the same problem as described in this thread. Running two displays out of newest Mac Mini (mid 2010 model). Video runs perfectly until I turn off one display, and then the video has a stutter I can't get rid off. Any ideas?

  • Flex Resources

    Flex 2.x Resources Flex sites/blogs: Adobe: http://www.adobe.com/devnet/flex/ DEVNET - start here! http://www.adobe.com/products/flex/productinfo/faq/ http://www.adobe.com/cfusion/communityengine/index.cfm?event=homepage&productId=2 http://blogs.adob

  • Validating components even with autosubmit and immediate

    Greetings: I am working in a application using ADF 11g. In my page, I have a <af:selectOneRadio> with two options (selectItem). These selectItem's have both immediate and autoSubmit attributes equal to true. Next, there is a <af:panelGroupLayout> whi

  • How to script for resize CS3 indesign

    Hi there, I've been trying to search the internet for a script that I can use in the following situation. I already use this script to center the content: myObj = app.selection[0]; myObj.fit(FitOptions.centerContent); the next step I would like to do

  • Roubaram meu Iphone,

    eu consigo recuperar as fotos e vídeos contidos nele?