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

Application server to R/3 system

hi all,

Can any body help me on this.

My requirement is,

I have a flat file on Application server with three fields(Material,Quantity,Date) and i want to post that file in to MB1C transaction code.taking plant,storage location,movement type,batch fixed values.

Thanks and Regards

Bab

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Mar 28, 2008 at 04:39 AM

    Hi,

    You can use of the following in you program to achieve your functionality.

    1)

    DATA: C_FNH_MASK TYPE DXFIELDS-FILEMASK VALUE '.',

    SEARCH_DIR TYPE DXFIELDS-LONGPATH VALUE '/SAPGLOBAL/USERS',

    FILE_PATH LIKE DXFIELDS-LONGPATH,

    -


    .

    2)

    CALL FUNCTION 'F4_DXFILENAME_TOPRECURSION'

    3)

    FORM app_upload_data.

    OPEN DATASET FILE_PATH IN TEXT MODE FOR INPUT ENCODING DEFAULT.

    -


    -


    READ DATASET FILE_PATH INTO WA_tcode.

    CLOSE DATASET FILE_PATH.

    endform.

    Regards,

    sekhar

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Mar 29, 2008 at 06:04 PM

    Hai bab,

    The following steps should be followed to achieve your task.

    1. To retrieve the fle on application server , Use

    F4_DXFILENAME_TOPRECURSION function module.

    2. Create an internal table and workarea with required structure.

    To upload data from application server to internal table,

    3. OPEN DATASET FILE IN TEXT MODE FOR INPUT

    ENCODING DEFAULT.

    4. READ DATASET file into wa_itab.

    5.CLOSE DATASET file.

    6. Create an internal table with the structure of BDCDATA.

    7. APPEND the values to the fields of the screen after

    recording the transaction.

    8. Using CALL TRANSACTION or SESSION method to create

    the MB1C transaction events.

    if it useful, reward points,

    thank you.

    G.V.K.Prasad

    Edited by: PRASAD GVK on Mar 29, 2008 7:05 PM

    Edited by: PRASAD GVK on Mar 29, 2008 7:08 PM

    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.