on 09-14-2018 6:01 AM
Hello,
Please refer below sample Output in smartforms :
Sr No. Prd code Case No.
1 prd1 001
2 prd2 002
3 prd3 003
3 prd4 003
I have sorted the items by Case No.
For serial number, I have defined one counter gv_counter.
The code snippet is as given below:
ON CHANGE OF wa_casedetail-exidv.
gv_counter = gv_counter + 1.
ENDON.
Now the problem is coming in Case No.003 which has 2 Products. So Sr.No. 3 is repeating 2 times in the output. But 3 should be displayed only once for multiple items in same Case No. So what changes should be made in the code. Kindly comment.
Thanks,
Hello,
could you please check whether the content of the field wa_casedetail-exid (I suppose it contains only the Case No) has been changed since the last time the statement ON CHANGE OF was executed. By the way this command is obsolete and it is better to use auxiliary variables and command IF, Case ...
Best regards,
Hedvig
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
77 | |
9 | |
9 | |
7 | |
7 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.