Quantcast
Channel: SCN : All Content - Process Integration (PI) & SOA Middleware
Viewing all articles
Browse latest Browse all 7030

udf for Inbound idoc -TDID field

$
0
0

Hi gurus ,

I need some help for the following logic. I am getting errors in the following code.This is PO response from xml to Inbound IDOC for TDID filed .I have attached current application code logic which I was trying to convert to udf in PI.Thanks in advance for help

 

i am sending two arguments suppnotes and hnote and execution type as allcontexts

hnote is a variable  which concatatination datetime plus suppliernote;suppnote is sourcefield

 

String notes="";

int hnoteLoop =0;

 

 

          if (suppnote.length>0)  {

                    for(int strgLgth = 0;strgLgth >= suppnote.length;strgLgth=strgLgth+70)

   

                    {

                    if (hnote.length>=70 )

                    {

                    notes= hnote[].substring(0,70) ;

                              hnote=hnote[].substring(70,hnote.length());

                              }

                              else {

                              hnoteLoop = hnoteLoop +1;

                              notes= hnote ;

 

 

                              }

                                                                                                                        }

                    }

reesult.addValue(hnote);


Viewing all articles
Browse latest Browse all 7030

Trending Articles