Skip to Content
author's profile photo Former Member
Former Member

Regarding number of program executions

HI ,All

i have a program that will download the txt file for each time execution ,

here my requirement is for each time i need to increase the count of one field in that notepad

i.e

suppose the field will be p1

for first time execution the value will be 1

second time 2

3==3

4--4

like that i have to download that notepad

the value of p1 is included in notepad .

can any one suggest me

Regards ,

pramodh.M.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Best Answer
    Posted on Jan 08, 2014 at 10:39 AM

    Create a custom table with the counter. Each time store the counter in custom table for the same. Next time increment it and update database table

    Nabheet

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jan 08, 2014 at 12:27 PM

    HI ,

    Try creating a custom table and maintain counter value . So For each time you are executing the program then try increment the table .

    Try the below code for downloading .

    DATA: datatab TYPE table_of_strings,

    ld_lines TYPE i,

    ld_file TYPE string,

    data TYPE IBIPPARMS-PATH.

    PARAMETERS: p_file(300) TYPE c ."MATCHCODE OBJECT f4_filename.

    AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_file.

    CALL FUNCTION 'F4_FILENAME'

    EXPORTING

    PROGRAM_NAME = SYST-CPROG

    DYNPRO_NUMBER = SYST-DYNNR

    FIELD_NAME = ' '

    IMPORTING

    FILE_NAME = data

    ld_file = data.

    CALL METHOD cl_gui_frontend_services=>gui_download

    EXPORTING

    filename = ld_file

    CHANGING

    data_tab = datatab " pass your data here.

    EXCEPTIONS

    OTHERS = 1.



    Regards,

    Sivaganesh

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 09, 2014 at 05:40 AM

    Thanks Nabheet/fred/Sivaganesh.

    for u r valuable reply the issue is solved i exported that value into clusters pcl3 .

    i have done like this EXPORT GV_COUNT TO DATABASE PCL3(TY) ID 'xxxxx'.




    import GV_COUNT from DATABASE PCL3(TY) ID 'xxxx'.


    now it is working fine


    Regards ,


    Pramodh.M

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.