Skip to Content
avatar image
Former Member

UDF code foe skip the lines

HI,

I have a scenario that I need to write UDF code for skip 1st 6 lines in the text file is it possible

if possible can I have that code it very important to me to I need to submit the project

please anyone help me

thank and regaurds

Manohar

Add comment
10|10000 characters needed characters exceeded

  • Why do you want to use an UDF? Are you using content conversion? If so you couldn't you use the document offset parameter in the file sender adapter to eliminate N lines of your document. Check out the documentation.

    Regards

    Frederick

  • Former Member Frederick-Claud Dimmer

    this is my text file I need to remove 1 to 6 line

    it should be started form this line as

    field 1:000451000206

    field2: INR0004

    field3:32000000024100017#TRAN_SUCCESS

    how can i achieve this.you have any idea

    capture.png (10.3 kB)
  • Get RSS Feed

2 Answers

  • Dec 20, 2017 at 10:34 AM

    Use document offset(with value as 6) property in FCC to skip the first 6 lines

    Add comment
    10|10000 characters needed characters exceeded

  • Dec 20, 2017 at 08:34 AM

    Hi Manohar!

    And how would you use UDF in graphical mapping for the source text file?

    Regards, Evgeniy.

    Add comment
    10|10000 characters needed characters exceeded

    • Hello Manohar,

      if you would have provided us with the information that you're running the scenario ontop of SAP CP I could have answered you earlier, that you should look into Groovy or JavaScript scripting based on your programming preferences. If you need more information on how to use these technologies you should check out the following documentation as starting point. In addition to that I'd advise you to read the following blog.

      Regards

      Frederick