Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

enable Cost center field on Sales order Item level

Former Member
0 Kudos

Hi Experts,

i have enable KOSTL field on sales order Item level for input in the exit  MV45AFZB in  Form  USEREXIT_COBL_SEND_ITEM

with this code

   int_coblf-fdnam = 'KOSTL'.
    int_coblf-output = '1'.
    int_coblf-input  = '1'.
    int_coblf-REQUIRED = '2'.
     INT_COBLF-ACTIVE = '1'.
    APPEND int_coblf.

But i am successful in enabling the cost center field in item screen as visible and allows us to key in the cost center value,

but the problem is after giving the value  and clicking on enter the value get disappeared and the value is not even passing to VBAP.

i need to read the value and store it in VBAP

request your help

Thanks

Vamsee

1 ACCEPTED SOLUTION

amol_samte
Contributor
0 Kudos

Did you used sy-tcode = ?

4 REPLIES 4

amol_samte
Contributor
0 Kudos

Did you used sy-tcode = ?

0 Kudos

no but do you think its required to use Sy-tcode?

0 Kudos

Please check it onece....

Hi Amol Thanks but thats not the solution

I have resolved it explained below :

Solution : i have enable the cost center filed in USEREXIT_COBL_SEND_ITEM as i explained in my fist query

but to read the values after user input i have implimented MV45AFZB in Form

   FORM USEREXIT_COBL_RECEIVE_VBAP.

    VBAP-KOSTL = COBL-KOSTL.

endform.

also it will only up to Sales order but we have to pass the values to Sales invoice too so again implimented user exit for Sales in voice in include RV60AFZC in

   FORM USEREXIT_FILL_VBRK_VBRP.

  

    VBRP-KOSTL = VBAP-KOSTL.

endform.

Hope this will useful for others \

Thanks ,

Vamsee