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

concadenate

hi experts,

I want to split the file path and have to concadenate sydatum sy uzeit into file name

after concadenating the file extention should come. how can we do that.

thanks,

gopan

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Oct 26, 2006 at 11:55 AM

    split filename at '.' into filename fileext.

    concatenate filename sy-datum sy-uzeit '.' fileext into filename.

    Regards

    Anurag

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Oct 26, 2006 at 11:55 AM

    Concatenate filepath sy-datum sy-uzeit '.txt' into v_filename.

    Regards,

    ravi

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 26, 2006 at 11:57 AM

    Hi

    DATA FILE_NAME(30) TYPE C

    CONCATENATE SY-DATUM SY-UZEIT '.TXT' INTO FILE_NAME.

    Max

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Oct 26, 2006 at 11:57 AM

    Hi,

    for example v_file contains filename,

    data : v_file(30) value 'c:/f1.txt',

    v1(20),v2(20).

    split v_file at '.' into v1 v2.

    concatenate v1 sy-datum sy-uzeit '.' v2 into v_file.

    write v_file.

    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.