Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 8150

update the "profit center of billing"through user-exit

$
0
0

Hi Gurus,

I have a requirement to make the field VBAP-PCRTF = VBAP-PRCTR in Sales order.

I tried to use the USER_EXIT_MOVE_FIELD_TO_COBL. Although there are two more user-exits available

  • USER_EXIT_MOVE_FIELD_TO_VBAP
  • USER_EXIT_SAVE_DOCUMENT_PREPARE/SAVE

 

Where one can change VBAP fields. However, after searching the forum ,i found it is  better option to use

USER_EXIT_MOVE_FIELD_TO_COBL.

 

This works fine only on screen.By this I mean, when i navigate to Account Assignment tab from the material entered, i can see that

VBAP-PCTRF is populated on the screen.

 

But is not making to VBAP table.

 

Below is the code

 

If vbap-vbeln is not initial.

vbap-pctrf = vbap-prctr.

endif.

 

Please advice me,where I am going wrong?

 

Thanks in advance,

Lakshmi


Viewing all articles
Browse latest Browse all 8150

Latest Images

Trending Articles



Latest Images

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