cancel
Showing results for 
Search instead for 
Did you mean: 

UDF

Former Member
0 Kudos

Hi all,

I have two file

1. Header File [ Material Master]

2. Detailed File [Items]

I need to send the custom bapi in putu2026

If header File Material and Item file Material are equal I need to send the data.

Can you please give me the udf for this requirement.

Exp

Header File

10000 Compaq 388

10001 hp 34444

Iteam file

10000 name dtedd dfdsfds

20000 kjjsafd fdjljdsk jlkjk

10000 kjljlk kljjklj kljklj

10001 Test Test

10001 Test Test test1

Thanks,

Anu

Accepted Solutions (1)

Accepted Solutions (1)

jyothi_anagani
Active Contributor
0 Kudos

Hi ANU,

Use Correlation. That is main. Them map using this UDF.

For this Requirement use this UDF.

Take 2 inputs for UDF. Material in Header & Material in Item.

While creating the UDF select Context.


if ( int i= 0; i<Material_Header.length;i++)
{
   if(int j=0;j<Material_Item.length;j++)
   {
      if(Material_Header<i> == Material_Item.length[j])
      {
         result.addValue("0");
      }
   }
}


Material in Header(Context change)----->UDF------->Target Message type.
Material in Item(Context change)---------/

Thanks.

Former Member
0 Kudos

done

Answers (1)

Answers (1)

VijayKonam
Active Contributor
0 Kudos

Its not as simple as you request it. First you need to design a bpm for collecting the files together and having a correlation for them to get the data in to bapi strucutures. Since you are getting flat files, you need to use FCC and define your datatypes..!!

Do search in forum for inputs..!!

VJ