cancel
Showing results for 
Search instead for 
Did you mean: 

data type for comples structure

Former Member
0 Kudos

hi xi profs

i got one scenario like file to bapi table.

here i have to create only one data type which includes file header,body and file footer like

eg header|docdate|siteid

accno,amount

trailer|totrec|totamount.

how i can manage the data type and i have to check total no of records in body to trailer totrec and sum of each and evry account amounts in body to trailer totalamount.

your answer would be appreciated.

waiting for good responase.

bye.

regards.

seeta ram.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

HI,

Same question is repeating , please write a UDF before that change the context to its root level , inUDF collect all records into a Vector and count the records and if the count is equal to the last record then send the message , otherwise add to result.addValue(ResultList.SUPPRESS) .. map to root to root.

and confirm the message level occurrences as 0.. unbound / 0.. 1

Regards

Chilla

Former Member
0 Kudos

hi chilla thanks for your response.

but i am net to this situation can u send the code for that UDF what u r saying.

please its very urgent.

waiting for your resposnse.

bye.

regards.

seeta ram.

Former Member
0 Kudos

hi chilla can u just send me udf code for that scenario what i had sent.

iam very greatful to u if u answered my question.

waiting for ur response.

bye.

regarfds.

seeta ram.

Answers (0)