SAP for Healthcare Discussions
Foster discussions about patient care, cost reduction, and operational excellence in healthcare organizations using SAP. Join the conversation.
cancel
Showing results for 
Search instead for 
Did you mean: 

USEREXIT_FILL_VBRK_VBRP

Former Member
0 Kudos

Hi all,

I'm try to fil the user field VBRP-ISHPRICE1 using the USEREXIT_FILL_VBRK_VBRP.

The information comes from TKOMP-ISHUSERPRICE1, i mean, the user exit code is very simple:


  CHECK NOT vbrk-ishkostr IS INITIAL.
  PERFORM call_badi_pricing_fields(sapln60a)
    USING vbrk-ishkostr
          vbap-vbeln
          vbrp-ishbegdt
          vbrk-vbtyp
    CHANGING tkomk
             tkomp.
      vbrp-ISHUSERPRICE1 = tkomp-ISHUSERPRICE1.
  ENDIF.

But i found a strange behavior, the sequential number is VBRP always is 1 more than sequential number in TKOMP, then the user-exit works, but the information is saved in the following service.

any ideas why is happening this??

thanks in advanced.

P.D. maybe i have to post in SD forum, what do you think??

EDIT: the same behavior with/without the badi call. the badi implementation doesn't have code for now, because we fill the KOMP-ISHUSERPRICE in a pricing routine.

Edited by: felix gomez on May 19, 2010 1:49 PM

1 REPLY 1

former_member198308
Active Participant
0 Kudos

Hi Felix

I used that badi several times ... Please, make shure to follow the instructions that are described in SPRO:

SAP Healthcare - Industry-Specific Components for Hospitals -> Patient Accounting -> Billing -> Pricing (Using Conditions) ->New Fields for Pricing.

with best regards

Matías