Need to check all custom programs with open data set

Hi all ,
i have  to list all custom programs and f.m.  which are using ftp server (file share).
Is there any way to list that programs

Hi,
You can use program RPR_ABAP_SOURCE_SCAN to find custom programs with providing find string criteria (i.e open data set).
Regards,
Ferry Lianto

Similar Messages

  • Just in case any one needs a Observable Collection that deals with large data sets, and supports FULL EDITING...

    the VirtualizingObservableCollection does the following:
    Implements the same interfaces and methods as ObservableCollection<T> so you can use it anywhere you’d use an ObservableCollection<T> – no need to change any of your existing controls.
    Supports true multi-user read/write without resets (maximizing performance for large-scale concurrency scenarios).
    Manages memory on its own so it never runs out of memory, no matter how large the data set is (especially important for mobile devices).
    Natively works asynchronously – great for slow network connections and occasionally-connected models.
    Works great out of the box, but is flexible and extendable enough to customize for your needs.
    Has a data access performance curve so good it’s just as fast as the regular ObservableCollection – the cost of using it is negligible.
    Works in any .NET project because it’s implemented in a Portable Code Library (PCL).
    The latest package can be found on nugget. Install-Package VirtualizingObservableCollection. The source is on github. 

    Good job, thank you for sharing
    Best Regards,
    Please remember to mark the replies as answers if they help

  • Problem With Open Data sets

    Hi frnds,
    Problem details: We have to read file from applicaitn server, In the file data its having tab spaces between fields . when i m trying to read the file, Data is comming but , inthe place of Spaces its giving special character "#"..
    please help me on that
    Thanks,
    Rohini

    * Lets open the file on App. server to read the records
    OPEN DATASET V_FILE FOR INPUT IN TEXT MODE ENCODING DEFAULT."" WITH SMART LINEFEED.
    * if the file is
    found and we can read the records
    IF SY-SUBRC = 0.
    DO.                                                " 1 TIMES.
    CLEAR :  V_ZTMAT_MASTER_IB,
                            V_MATERIAL ,
                                V_PLNTID ,
                   V_LOCATN ,
                   V_MAKTX ,
                   V_MEINS ,
                   V_MATKL1.
    READ DATASET V_FILE INTO V_ZTMAT_MASTER_IB.
    IF SY-SUBRC <> 0.
    EXIT.
          ELSE.
    *       As the data is read as a single line into a variable,  split the data into respective fields of the internal table.
    SPLIT V_ZTMAT_MASTER_IB AT C_COMMA INTO:
    V_MATERIAL
    V_PLNTID
                                                   V_LOCATN
                                                   V_MAKTX
                                                   V_MEINS
                                                   V_MATKL1.
    *  Check it the split is succesful or not. If not send email.
            IF SY-SUBRC <> 0.
    CLEAR WA_CONTENTS_TXT.
              CONCATENATE 'The file :  ' V_FG_FILE ' ,  is not TILDE Delimited. Please check the file where material number is  '  V_MATERIAL
                            '  Thanks. ' INTO WA_CONTENTS_TXT .
              APPEND WA_CONTENTS_TXT TO TB_CONTENTS_TXT.
              CLEAR WA_CONTENTS_TXT.
            ELSE.
    *        Check if the correct data type is being passed or else send an email...
              CATCH SYSTEM-EXCEPTIONS
               ARITHMETIC_ERRORS = 1
               CONVERSION_ERRORS = 2.
                V_SNO = V_SNO + 1.
                MOVE :   SY-MANDT   TO WA_ZMATERIALMASTER1-MANDT,
                         V_SNO      TO WA_ZMATERIALMASTER1-SNO,
                         V_STATUS   TO WA_ZMATERIALMASTER1-STATUS,
                         V_MATERIAL TO WA_ZMATERIALMASTER1-MATERIAL,
                         V_PLNTID   TO WA_ZMATERIALMASTER1-PLNTID,
                         V_LOCATN   TO WA_ZMATERIALMASTER1-LOCATN,
                         V_MAKTX    TO WA_ZMATERIALMASTER1-MAKTX,
                         V_MEINS    TO WA_ZMATERIALMASTER1-MEINS,
                         V_MATKL1   TO WA_ZMATERIALMASTER1-MATKL.
                APPEND WA_ZMATERIALMASTER1 TO TB_ZMATERIALMASTER1
    ENDCATCH.
              IF SY-SUBRC = 2.
                V_SUBJECT1         = 'Subject : Z_ROHINI_ASSIGNMENT_4A'.
                V_ATTACHMENT_DESC1 = 'Z_ROHINI_ASSIGNMENT_4A: Error'.
                V_EMAIL1          = P_RECVR.
                V_SENDER_ADDRESS1 = P_SENDR.
                V_MTITLE1         = 'File error: Data type is diferent than expected in file'.
                V_FG_FILE1 = V_FILE.
                CONCATENATE 'In the file :  ' V_FG_FILE1 ' ,    data type is diferent than expected. Unable to move record(s). Please check the file  where material number is  '  V_MATERIAL  '.   Thanks.' INTO WA_CONTENTS_TXT1.
                APPEND WA_CONTENTS_TXT1 TO TB_CONTENTS_TXT1.
              ENDIF.
    *          ENDLOOP.
            ENDIF.
          ENDIF.
        ENDDO.  " END OF OPEN DATASET  DO
    *   Archiving Flat File
        PERFORM MOVE_FLATFILE.
      ENDIF.  " END OF OPEN DATASET SY-SUBRC IF...
      CLOSE DATASET V_FILE.

  • Customer Statement with opening and closing balances

    Dear Forum,
    The users want to generate the Customer Statement with opening and closing balances like the traditional one. The statement now generated gives the list of all open items as on date, but the users want the statement with opening balances as on the date of the begining of the range specified and the closing balance at the end of the period for which the statement is generated. Is there a way to generate the same from the system.
    Thanks for the help.
    Regards,

    Hi,
    SPRO> Financial Accounting (New) > Accounts Receivable and Accounts Payable > Customer Accounts > Line Items > Correspondence > Make and Check Settings for Correspondence
    You can use the program RFKORD10 with correspondance type SAP06 for your company code
    This program prints account statements and open items lists for customers and vendors in letter form. For account statements, all postings between two key dates, as well as the opening and closing balance, are listed.
    Regards,
    Gaurav

  • Copying standard prog to custome program with includes that includes hd inc

    Hi gurus,
    i got one requirement,
    I have to copy standard program to custome program with includes ,that includes con tain few more includes. so how can i copy all the includes into the custome progam.
    please tel me.

    Hi Vijayam,
    In SE38, give the name of the standard program, in menubar goto program -> copy, which will take you to a pop up, check the checkbox for 'INCLUDES' to copy all the standard includes.  But this will not copy the custom includes(starting with Z). To copy the custom include, you need to create new include in your copy program.To create a new include, click on icon 'Display Object List' which will display the objects list for your program, now right click on your program name in this list and select CREATE-> INCLUDE. Give the name of include and now copy the code from standard program include to your include.
    I hope your problem is solved now.
    Regards,
    Pranjali

  • All my programs are opening in adobe even the system restore and the regisrty - how do I reset all programs to their originall default programs. Please help

    all my programs are opening in adobe even the system restore and the regisrty -
    how do I reset all programs to their originall default programs.
    Please help.
    PS I have also tried starting in save mode and still have the same problem.

    Hi,
    As
    BurrWalnut mentioned, first please run a virus scan to eliminate virus infection (if AV program is not opened in adobe)
    The files association could be corrupted in your situation, apart from the solution posted in the first reply, I also suggest you check Control Panel\All Control Panel Items\Default Programs\Set your Default Programs or Associate a file type or protocol
    with a progra,, manually check the association and check if it can do some help.
    Add: another way to open restore point is launching it in recovery console, please refer to this guide
    http://windows.microsoft.com/en-hk/windows/what-are-system-recovery-options#what-are-system-recovery-options=windows-7
    Yolanda Zhu
    TechNet Community Support

  • For photography I have CS4, Lightroom 5.3, I use Bridge and sometimes NIK and Topaz Plugins. If I want to update to CC, what is the plan I need? Will all of my Lightroom history data be retained?

    For photography I have CS4, Lightroom 5.3, I use Bridge and sometimes NIK and Topaz Plugins. If I want to update to CC, what is the plan I need? Will all of my Lightroom history data be retained?

    Probably the special photography plan - Creative Cloud pricing and membership plans | Adobe Creative Cloud
    For details on any program, you should ask in the forum for that program
    If you will start at the Forums Index https://forums.adobe.com/welcome
    You will be able to select a forum for the specific Adobe product(s) you use
    Click the "down arrow" symbol on the right (where it says All communities) to open the drop down list and scroll

  • Open data set problem with binary mode

    Hi everyone,
    I am trying to read into a buffer the content of a binary file (like Excel) and to write that content file using open data set into a folder destination.
    The file destination has a size diferent than from the original one and cannot be open.
    Here is the code.
      DATA:  lv_file_name(100),
             lt_content LIKE sdokcntbin OCCURS 0 WITH HEADER LINE.
      MOVE '\computerTestA1.xls' TO lv_file_name.
      OPEN DATASET lv_file_name FOR INPUT IN BINARY MODE.
      IF sy-subrc NE 0.
        EXIT.
      ENDIF.
      DO.
        READ DATASET lv_file_name INTO lt_content-line.
        IF sy-subrc NE 0.
          EXIT.
        ENDIF.
        APPEND lt_content.
      ENDDO.
      CLOSE DATASET lv_file_name.
    *  DELETE DATASET lv_file_name.
      CLEAR: lv_file_name.
      MOVE '\computerTestB2.xls' TO lv_file_name.
      OPEN DATASET lv_file_name FOR OUTPUT IN BINARY MODE.
      IF sy-subrc NE 0.
        EXIT.
      ENDIF.
      LOOP AT lt_content.
        TRANSFER lt_content-line TO lv_file_name.
      ENDLOOP.
      CLOSE DATASET lv_file_name.
    THanks in advance.
    Regards.
    Message was edited by:
            David Fryda

    Hi,
    I solve the problem.
    In fact, when I try to write the last line of lt_content, it does write all the line even if this line is not full of data.
    Solution :
      DATA:  lv_file_name(100),
             lt_content LIKE sdokcntbin OCCURS 0 WITH HEADER LINE,
             alen TYPE i,
             pos TYPE i.
      MOVE '\mr0221TestA1.xls' TO lv_file_name.
      OPEN DATASET lv_file_name FOR INPUT IN BINARY MODE.
      IF sy-subrc NE 0.
        EXIT.
      ENDIF.
      SET DATASET lv_file_name POSITION END OF FILE.
      GET DATASET lv_file_name POSITION pos.
      SET DATASET lv_file_name POSITION 0.
      DO.
        CLEAR lt_content.
        READ DATASET lv_file_name INTO lt_content-line ACTUAL LENGTH alen .
        IF sy-subrc NE 0.
          APPEND lt_content.
          EXIT.
        ENDIF.
        APPEND lt_content.
      ENDDO.
      CLOSE DATASET lv_file_name.
    *  DELETE DATASET lv_file_name.
      CLEAR: lv_file_name.
      MOVE '\mr0221TestB2.xls' TO lv_file_name.
      OPEN DATASET lv_file_name FOR OUTPUT IN BINARY MODE.
      IF sy-subrc NE 0.
        EXIT.
      ENDIF.
      LOOP AT lt_content.
        AT LAST.
          TRANSFER lt_content-line TO lv_file_name LENGTH alen.
          EXIT.
        ENDAT.
        TRANSFER lt_content-line TO lv_file_name.
      ENDLOOP.
      CLOSE DATASET lv_file_name.
    Thanks.

  • All my accounts with Apple are set for the US. However when I order an I book it charges me in £. How do I change this to US currency?

    All my accounts with Apple are set fot the US. However, when I attempt to order an iPhoto book it charges me in £ and charges VAT. The book is being sent to an address in the US and I am US citizen. How do I change the account to a US account?

    iPhoto Preferences -> Advanced -> Bottom of the panel: What Print Store is selected?

  • What is open data set and close data set

    what is open data set and close data set,
    how to use the files in sap directories ?

    hi,
    Open Dataset is used to read or write on to application server ... other than that i am not sure that there exists any way to do the same ... here is a short description for that
    FILE HANDLING IN SAP
    Introduction
    • Files on application server are sequential files.
    • Files on presentation server / workstation are local files.
    • A sequential file is also called a dataset.
    Handling of Sequential file
    Three steps are involved in sequential file handling
    • OPEN
    • PROCESS
    • CLOSE
    Here processing of file can be READING a file or WRITING on to a file.
    OPEN FILE
    Before data can be processed, a file needs to be opened.
    After processing file is closed.
    Syntax:
    OPEN DATASET <file name> FOR {OUTPUT/INPUT/APPENDING}
    IN {TEXT/BINARY} MODE
    This statement returns SY_SUBRC as 0 for successful opening of file or 8, if unsuccessful.
    OUTPUT: Opens the file for writing. If the dataset already exists, this will place the cursor at the start of the dataset, the old contents get deleted at the end of the program or when the CLOSE DATASET is encountered.
    INPUT: Opens a file for READ and places the cursor at the beginning of the file.
    FOR APPENDING: Opens the file for writing and places the cursor at the end of file. If the file does not exist, it is generated.
    BINARY MODE: The READ or TRANSFER will be character wise. Each time ‘n’’ characters are READ or transferred. The next READ or TRANSFER will start from the next character position and not on the next line.
    IN TEXT MODE: The READ or TRANSFER will start at the beginning of a new line each time. If for READ, the destination is shorter than the source, it gets truncated. If destination is longer, then it is padded with spaces.
    Defaults: If nothing is mentioned, then defaults are FOR INPUT and in BINARY MODE.
    PROCESS FILE:
    Processing a file involves READing the file or Writing on to file TRANSFER.
    TRANSFER Statement
    Syntax:
    TRANSFER <field> TO <file name>.
    <Field> can also be a field string / work area / DDIC structure.
    Each transfer statement writes a statement to the dataset. In binary mode, it writes the length of the field to the dataset. In text mode, it writes one line to the dataset.
    If the file is not already open, TRANSFER tries to OPEN file FOR OUTPUT (IN BINARY MODE) or using the last OPEN DATASET statement for this file.
    IF FILE HANDLING, TRANSFER IS THE ONLY STATEMENT WHICH DOES NOT RETURN SY-SUBRC
    READ Statement
    Syntax:
    READ DATASET <file name> INTO <field>.
    <Field> can also be a field string / work area / DDIC structure.
    Each READ will get one record from the dataset. In binary mode it reads the length of the field and in text mode it reads each line.
    CLOSE FILE:
    The program will close all sequential files, which are open at the end of the program. However, it is a good programming practice to explicitly close all the datasets that were opened.
    Syntax:
    CLOSE DATASET <file name>.
    SY-SUBRC will be set to 0 or 8 depending on whether the CLOSE is successful or not.
    DELETE FILE:
    A dataset can be deleted.
    Syntax:
    DELETE DATASET <file name>.
    SY-SUBRC will be set to 0 or 8 depending on whether the DELETE is successful or not.
    Pseudo logic for processing the sequential files:
    For reading:
    Open dataset for input in a particular mode.
    Start DO loop.
    Read dataset into a field.
    If READ is not successful.
    Exit the loop.
    Endif.
    Do relevant processing for that record.
    End the do loop.
    Close the dataset.
    For writing:
    Open dataset for output / Appending in a particular mode.
    Populate the field that is to be transferred.
    TRANSFER the filed to a dataset.
    Close the dataset.
    Regards
    Anver
    if hlped pls mark points

  • Open data set / code page

    Hello ,
    I am sending file to print server  and i am accounting problems with  special characters
    In first version of  program  ( please see the code below )
    "OPEN DATASET g_filename  FOR OUTPUT IN TEXT MODE ENCODING DEFAULT."
    The special characters l from German and French   alphabet were NOT printed properly  , and we had  some nonsense results . Other '"Normal "characters  like A , B... are printed without errors .
    To prevent this error i wrote new line of code for open data set ( below ).
    "OPEN DATASET g_filename FOR OUTPUT IN   LEGACY TEXT MODE CODE PAGE '4110'  IGNORING CONVERSION ERRORS."
    This was working only when FTP was NOT used  , when FTP was used i had  following short  dump.
    I am working in SAP release 6.0
    Please Advice
    SHORT DUMP Message :
    What happened?
        The conversion of texts in code page '4102' to code page '4110' is not
        supported here.
        The current ABAP program 'SAPLZPRN_AUTO_LBL' had to be interrupted because
         incorrect
        data would have been created by the conversion.
    Error analysis
        An exception occurred that is explained in detail below.
        The exception, which is assigned to class 'CX_SY_CODEPAGE_CONVERTER_INIT', was
         not caught in
        procedure "Z_TRANSFER_FILE" "(FUNCTION)", nor was it propagated by a RAISING
         clause.
        Since the caller of the procedure could not have anticipated that the
        exception would occur, the current program is terminated.
        The reason for the exception is:
        Possibly, one of the codepages '4102' or '4110' - needed for the
        conversion - is unknown to the system. Another option is, that a Unicode
         codepage was specified for a file in LEGACY MODE, which is not allowed.
        Additional parameters for the codepage conversion (as , for example, the
         replacement character) might have invalid values. You can find further
        information under 'Inernal notes'.
        If the problem occurred at opening, reading, or writing of a file, then
        the file name was '/te/mm/labels/0488_20091208_051317_EC008119_01_001.dd'.
         (Further information about this file: " X ")

    Hi,
    Also check the character set supported by the Printer. Printer configuration should also be checked on SAP side to determine character set and code page using SPAD.
    Regards,
    Nishad

  • Open data set from Text mode to Binary mode

    Hello All,
    In a program i am using the command
        OPEN DATASET file FOR OUTPUT IN TEXT MODE
        ENCODING NON-UNICODE IGNORING CONVERSION ERRORS.
    Now i want to change this open data set to binary mode. I mean to change the command like below.
    OPEN DATASET file FOR OUTPUT IN BINARY MODE.
    when i do this. the output in the file is totally changing. I mean previously i have some text now i have some diffrent characters.
    How can i use this command with out change in the output as previous output. Please tell me  the changes and why i have to do.
    OPEN DATASET file FOR OUTPUT IN BINARY MODE.
    Regards,
    Lisa.
    Message was edited by:
            Lisa Roy

    Text Mode means that the records in the file have a carriage return marking the end of each record.
    Binary Mode means the file is a string of data.
    You can't read a text file in BINARY MODE, or a binary file in TEXT MODE.
    If you are changing the mode, then you must be supplied with a file in the new mode.

  • Open data set

    hi friends
    i make one file like dat.i use open data set so dat file created
    so my question is that where this file is created ?
    it will create on applicationserver?
    bcoz its not create on my local drive.

    Hi
    Yes
    A file will be created on Application server.
    We use DATASET concept for reading, writing, transfering data from Local to Application servers.
    see the sample code
    ABAP code for uploading a TAB delimited file into an internal table. See code below for structures.
    *& Report  ZUPLOADTAB                                                  *
    *& Example of Uploading tab delimited file                             *
    REPORT  zuploadtab                    .
    PARAMETERS: p_infile  LIKE rlgrap-filename
                            OBLIGATORY DEFAULT  '/usr/sap/'..
    DATA: ld_file LIKE rlgrap-filename.
    *Internal tabe to store upload data
    TYPES: BEGIN OF t_record,
        name1 like pa0002-VORNA,
        name2 like pa0002-name2,
        age   type i,
        END OF t_record.
    DATA: it_record TYPE STANDARD TABLE OF t_record INITIAL SIZE 0,
          wa_record TYPE t_record.
    *Text version of data table
    TYPES: begin of t_uploadtxt,
      name1(10) type c,
      name2(15) type c,
      age(5)  type c,
    end of t_uploadtxt.
    DATA: wa_uploadtxt TYPE t_uploadtxt.
    *String value to data in initially.
    DATA: wa_string(255) type c.
    constants: con_tab TYPE x VALUE '09'.
    *If you have Unicode check active in program attributes then you will
    *need to declare constants as follows:
    *class cl_abap_char_utilities definition load.
    *constants:
       con_tab  type c value cl_abap_char_utilities=>HORIZONTAL_TAB.
    *START-OF-SELECTION
    START-OF-SELECTION.
    ld_file = p_infile.
    OPEN DATASET ld_file FOR INPUT IN TEXT MODE ENCODING DEFAULT.
    IF sy-subrc NE 0.
    ELSE.
      DO.
        CLEAR: wa_string, wa_uploadtxt.
        READ DATASET ld_file INTO wa_string.
        IF sy-subrc NE 0.
          EXIT.
        ELSE.
          SPLIT wa_string AT con_tab INTO wa_uploadtxt-name1
                                          wa_uploadtxt-name2
                                          wa_uploadtxt-age.
          MOVE-CORRESPONDING wa_uploadtxt TO wa_upload.
          APPEND wa_upload TO it_record.
        ENDIF.
      ENDDO.
      CLOSE DATASET ld_file.
    ENDIF.
    *END-OF-SELECTION
    END-OF-SELECTION.
    *!! Text data is now contained within the internal table IT_RECORD
    Display report data for illustration purposes
      loop at it_record into wa_record.
        write:/     sy-vline,
               (10) wa_record-name1, sy-vline,
               (10) wa_record-name2, sy-vline,
               (10) wa_record-age, sy-vline.
      endloop.
    Reward points for useful Answers
    Regards
    Anji

  • Difference between SXPG_COMMAND_EXECUTE and Open data set mechanism

    Can you please help me to know the difference between moving a file using FM "SXPG_COMMAND_EXECUTE" and moving file using "open data set - transfer file- close data set" mechanism?

    Through 'SXPG_COMMAND_EXECUTE' u can execute a External command  (ie.. UNIX /Windows/OS/400) In ABAP programming..
    for Conversion Of Aplication server File/Move the file from one directory to Other...
    The Command must be present in SM69.
    Using this function module'SXPG_COMMAND_EXECUTE' , you can check the authorization of a user to execute a particular external command and run the command:
    With the arguments specified in ADDITIONAL_PARAMETERS
    On the target host system defined by OPERATINGSYSTEM and TARGETSYSTEM
    If an SAP profile parameter is inserted in the portion of the command stored in the database, then the value of this parameter is substituted into the command. If an SAP application server is active on the target system (TARGETSYSTEM), then the profile parameter values are read from the profile that is active on that system. No parameter substitution is made in ADDITIONAL_PARAMETERS.
    After substitution, the command is checked for the presence of "dangerous" characters such as the semicolon ( ; ) on UNIX systems.
    If an additional "security function module" is specified in the command definition, this function module is also called in the course of processingebenfalls. This function module can prevent execution of the command.
    If the authorization checks complete successfully, the command is run on the target host system.
    Through Open Data Set u can read and write the file in the same directory...
    Thnaks,
    SD
    Moderator message: copy/paste without credit, points removed, please do not repeat!
    http://www.google.de/search?hl=de&q=%22youcanchecktheauthorizationofauserto+execute%22&meta=&aq=f&aqi=&aql=&oq=&gs_rfai=
    http://www.google.de/search?hl=de&q=%22Aftersubstitution%2Cthecommandischeckedforthepresence%22&meta=&aq=f&aqi=&aql=&oq=&gs_rfai=
    Edited by: Thomas Zloch on Aug 17, 2010 12:47 PM

  • Download using open data set and close data set

    can any body please send some sample pgm using open data set and close data set .the data should get downloaded in application server
    very simple pgm needed

    Hi Arun,
    See the Sample code for BDC using OPEN DATASET.
    report ZSDBDCP_PRICING no standard page heading
    line-size 255.
    include zbdcrecx1.
    *--Internal Table To hold condition records data from flat file.
    Data: begin of it_pricing occurs 0,
    key(4),
    f1(4),
    f2(4),
    f3(2),
    f4(18),
    f5(16),
    end of it_pricing.
    *--Internal Table To hold condition records header .
    data : begin of it_header occurs 0,
    key(4),
    f1(4),
    f2(4),
    f3(2),
    end of it_header.
    *--Internal Table To hold condition records details .
    data : begin of it_details occurs 0,
    key(4),
    f4(18),
    f5(16),
    end of it_details.
    data : v_sno(2),
    v_rows type i,
    v_fname(40).
    start-of-selection.
    refresh : it_pricing,it_header,it_details.
    clear : it_pricing,it_header,it_details.
    CALL FUNCTION 'UPLOAD'
    EXPORTING
    FILENAME = 'C:\WINDOWS\Desktop\pricing.txt'
    FILETYPE = 'DAT'
    TABLES
    DATA_TAB = it_pricing
    EXCEPTIONS
    CONVERSION_ERROR = 1
    INVALID_TABLE_WIDTH = 2
    INVALID_TYPE = 3
    NO_BATCH = 4
    UNKNOWN_ERROR = 5
    GUI_REFUSE_FILETRANSFER = 6
    OTHERS = 7.
    WRITE : / 'Condition Records ', P_FNAME, ' on ', SY-DATUM.
    OPEN DATASET P_FNAME FOR INPUT IN TEXT MODE.
    if sy-subrc ne 0.
    write : / 'File could not be uploaded.. Check file name.'.
    stop.
    endif.
    CLEAR : it_pricing[], it_pricing.
    DO.
    READ DATASET P_FNAME INTO V_STR.
    IF SY-SUBRC NE 0.
    EXIT.
    ENDIF.
    write v_str.
    translate v_str using '#/'.
    SPLIT V_STR AT ',' INTO it_pricing-key
    it_pricing-F1 it_pricing-F2 it_pricing-F3
    it_pricing-F4 it_pricing-F5 .
    APPEND it_pricing.
    CLEAR it_pricing.
    ENDDO.
    IF it_pricing[] IS INITIAL.
    WRITE : / 'No data found to upload'.
    STOP.
    ENDIF.
    loop at it_pricing.
    At new key.
    read table it_pricing index sy-tabix.
    move-corresponding it_pricing to it_header.
    append it_header.
    clear it_header.
    endat.
    move-corresponding it_pricing to it_details.
    append it_details.
    clear it_details.
    endloop.
    perform open_group.
    v_rows = sy-srows - 8.
    loop at it_header.
    perform bdc_dynpro using 'SAPMV13A' '0100'.
    perform bdc_field using 'BDC_CURSOR'
    'RV13A-KSCHL'.
    perform bdc_field using 'BDC_OKCODE'
    '/00'.
    perform bdc_field using 'RV13A-KSCHL'
    it_header-f1.
    perform bdc_dynpro using 'SAPMV13A' '1004'.
    perform bdc_field using 'BDC_CURSOR'
    'KONP-KBETR(01)'.
    perform bdc_field using 'BDC_OKCODE'
    '/00'.
    perform bdc_field using 'KOMG-VKORG'
    it_header-f2.
    perform bdc_field using 'KOMG-VTWEG'
    it_header-f3.
    **Table Control
    v_sno = 0.
    loop at it_details where key eq it_header-key.
    v_sno = v_sno + 1.
    clear v_fname.
    CONCATENATE 'KOMG-MATNR(' V_SNO ')' INTO V_FNAME.
    perform bdc_field using v_fname
    it_details-f4.
    clear v_fname.
    CONCATENATE 'KONP-KBETR(' V_SNO ')' INTO V_FNAME.
    perform bdc_field using v_fname
    it_details-f5.
    if v_sno eq v_rows.
    v_sno = 0.
    perform bdc_dynpro using 'SAPMV13A' '1004'.
    perform bdc_field using 'BDC_OKCODE'
    '=P+'.
    perform bdc_dynpro using 'SAPMV13A' '1004'.
    perform bdc_field using 'BDC_OKCODE'
    '/00'.
    endif.
    endloop.
    *--Save
    perform bdc_dynpro using 'SAPMV13A' '1004'.
    perform bdc_field using 'BDC_OKCODE'
    '=SICH'.
    perform bdc_transaction using 'VK11'.
    endloop.
    perform close_group.
    Hope this resolves your query.
    Reward all the helpful answers.
    Regards

Maybe you are looking for

  • HELP - Website isn't working for me but working for everybody else

    Hey I'm new to this site so I'm sorry if this is in the wrong section! So I've been getting annoyed lately because my website (www.curtiskeay.com) isn't working for me and just redirecting me back to my hosting website saying that the website is 'com

  • Refresh database through exp/imp

    version 10203 on windows (old db on solaris 8170) i Have to refresh database data, No of users/schemas are 400+. fastest way to do that would be to do full exp/imp. but 1st drop current users cascade. (any command to drop all users in with one comman

  • ERROR: Abnormal termination of connection

    Hi All, We recently upgraded to Oracle Forms 6i in character mode, running on HP Unix 11.11. My users frequently crash. The screen changes to just a few characters on the right hand side. There are dump files in the forms directory -- one follows. Th

  • Want to keep the screen in "fade out" mode

    Hi! I hope you'll be able to help me with this one! I use my ipod at work and I don't want to look like a guy with a tv running on his desk, so I keep my ipod touch set so that it locks after one minute. What I found really annoying is that if someon

  • Help,how to check a input type?

    Dear all experts, in the selection-screen,user need to key in the vendor consignment code ( vdrcsg  for mslb-lifnr ) some user key in storage location ( mseg-lgort ) in this field. Is there anyway tat i can do verification before procees to the start