Quantcast
Channel: SCN : Discussion List - SAP Planning and Consolidation, version for SAP NetWeaver
Viewing all articles
Browse latest Browse all 5414

Unable to write all data using ujd_routine Badi

$
0
0

Let's say we have 5 dimension :

ACCOUNT,TIME,AUDIT,RPTCURRENCY,COMPCODE.

 

Now in code we are getting the data to be written back into a workarea :  <lt_data_out>.

This <lt_data_out> contains all the dimesnions in string form concatenated along with SIGNEDDATA and separated by comma like below :

 

ACCOUNT1,2012.01,AUDIT1,LC,COMP001,2000.00.

we do the following to assign to a er_data.

 

append  <lt_data_out> to a table <lt_data>.

 

and after appending all the records in the  loop we do this :

get reference of <lt_data> to er_data.

 

 

Now in Transformation file we do like this :

OPTIONS

...

..

..

*STARTROUTINE = ZSTART_ROUTINE1

 

MAPPING

ACCOUNT = *COL(1)

TIME = *COL(2)

AUDIT = *COL(3)

RPTCURRENCY = *COL(4)

COMPCODE = *COL(5)

SIGNEDDATA = *COL(6)

 

 

 

*****************************************************************************************************

Now while debugging we see  all records in <lt_data> referred by er_data.

But only first record gets written to backend.

 

 

What are we missing ??

 

 

Regards,
SHUBHAM


Viewing all articles
Browse latest Browse all 5414

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>