Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 2069

Re: Parallel processing of a server file ???

$
0
0

Hello Gabriel.
Thnx for replying .
The problem was at the DO , ENDO. 
It needed to become   DO  n TIMES .   ......................    ENDO.

 

Where the was the  number of lines the MEGA FILE had inside . 
I found the nr of lines executing an external comand on my OS LINUX  creating a new comand
z_test  in SM69    setting the attributes  
Operating System Command  :  wc
Parameters for Operating System : -l

 

And in the ABAP report    call this comand  like this :

 

CALL FUNCTION 'SXPG_COMMAND_EXECUTE'
   EXPORTING
     commandname                         = 'Z_TEST'
    ADDITIONAL_PARAMETERS               = 'Server path of the file for witch i run the command'
  TABLES
    EXEC_PROTOCOL                       = EXEC_PROTOCOL
  EXCEPTIONS
    NO_PERMISSION                       = 1
    COMMAND_NOT_FOUND                   = 2
    PARAMETERS_TOO_LONG                 = 3
    SECURITY_RISK                       = 4
    WRONG_CHECK_CALL_INTERFACE          = 5
    PROGRAM_START_ERROR                 = 6
    PROGRAM_TERMINATION_ERROR           = 7
    X_ERROR                             = 8
    PARAMETER_EXPECTED                  = 9
    TOO_MANY_PARAMETERS                 = 10
    ILLEGAL_COMMAND                     = 11
    WRONG_ASYNCHRONOUS_PARAMETERS       = 12
    CANT_ENQ_TBTCO_ENTRY                = 13
    JOBCOUNT_GENERATION_ERROR           = 14
    OTHERS                              = 15
           .
Read TABLE exec_protocol into st_exec_protocOl index 1 .

DATA : LV_NR_REC(10),
        LV_PATH(128),
        NR_REC TYPE I .
SPLIT st_exec_protocol-message at '/'  into  lv_nr_rec lv_path.
CONDENSE LV_NR_REC.
MoveLV_NR_REC TO NR_REC.


 

That worked for me .
Thnx again for your time on replying posts .
Keep rocking guys     


Viewing all articles
Browse latest Browse all 2069

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>