Quantcast
Channel: SCN : Popular Discussions - ABAP in Eclipse
Viewing all articles
Browse latest Browse all 1215

Code in SQ02 to generate custom serial no

$
0
0

Dear Experts,

 

I am developing a Infoset query using SQ02, where i would like to write a small piece of ABAP code to generate a serial number as described below.

 

AssignmentSerial No to be generated
4200004748000401
4200004748000402
4200004326000201
4800069548000101
4800069548000102
4800069548000103

 

First column data is coming in my output as a result of my query, but i would to see/generate the serial number as same as second column.


Ex: For the first time if the ASSIGNMENT number is coming it should starts with 1 and if the same ASSIGNMENT number (first column value) is repeating in a new row, then the custom serial number to be increased by 1,

 

Please note that Assignment field's field name is ZUONR and Serial No field's field name is ZZEKKN.

 

Regards,

Srinu


Viewing all articles
Browse latest Browse all 1215

Trending Articles



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