Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8372

Sales Quote(Pricing conditions) - Incompletion log problem

$
0
0

Hello All,

 

My requirement is to check VA00 pricing at each item level. If amount/value = '123' then append a log to incompletion log.

 

I have put my code in MV45AFZB->userexit_check_vbap as:

 

  loop at xkomv into ls_komv where kposn = vbap-posnr

                               and kschl = 'VA00'

                               and kwert = '123'

                               and kinak = ' '.

      ls_vbuvvb-mandt = sy-mandt.

      ls_vbuvvb-vbeln = vbap-vbeln.

      ls_vbuvvb-posnr = vbap-posnr.

      ls_vbuvvb-tdid  = 'ZTXT'.

      ls_vbuvvb-tbnam = 'VBAP'.

      ls_vbuvvb-fdnam = 'PRSOK'.

      ls_vbuvvb-fehgr = 'ZQ'.

      ls_vbuvvb-statg = '06'.

      ls_vbuvvb-updkz = 'X'.

      ls_vbuvvb-fcode = 'PKO1'.   "PKON

      ls_vbuvvb-sortf = '9999'.

      append ls_vbuvvb to xvbuv.

   endloop.

 

Now, my Quote is having 8 items say 10,20....80.

I have added VA00 pricing-123 for item 70. from the same screen i went to incompletion log and the log shows that item 70 is having pricing log and i select the item and clicked on complete data, cursor moved to item 70 conditions tab..all good.

 

Scenario 1) - Bigger Monitor (All line Items are visible in the screen)

VA22 -> Edit->incompletion log and the log shows that item 70 is having pricing log and i select the item and clicked on complete data...cursor moved to item 80 conditions tab..which is bad..

 

Scenario 2) - Laptop (only 4 line items visible in the screen)

VA22 -> Edit->incompletion log and the log shows that item 70 is having pricing log and i select the item and clicked on complete data...cursor moved to item 40 conditions tab..which is bad..

 

In the debug mode, I see VBAP-POSNR value is getting from the XVBAP[] last table entry. it is not going by the selected incompletion log item number.

Do we need to do any thing in the config to point to the right item?

 

Thanks,

Sree


Viewing all articles
Browse latest Browse all 8372

Trending Articles



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