cancel
Showing results for 
Search instead for 
Did you mean: 

How to change value of VBRK-KIDNO during SD-Billing? VF02

atif_bhatti
Participant
0 Kudos

Hi wisers,              

I am wondering if anyone know how to clear the content of VBRK-KIDNO during SD-Billing in VF02.

I have found that there is function module COMPUTE_CHECKNUM_NO_001 which compute the KIDNO.

not sure which user exit can be used to clearout the content of KIDNO.

Note: this VBRK-KIDNO is used when posted to FI doc in table BSEG-KIDNO.

thanks

Accepted Solutions (0)

Answers (3)

Answers (3)

0 Kudos

Hi

The best way to fill the field is with a custom ITEM data transfer routine that is assigned in the TVCPF table (copy control). You can set the value you require and it will be saved to the database

form VF01.

You have to consider also that there is a special handling of the field after you save the billing document. See below after you press save.

RV_INVOICE_DOCUMENT_ADD

...

  IF xvbrk-kidno IS INITIAL.         " kein Stornofall

    IF xvbrk-vbtyp NE vbtyp_guts.    " keine Gutschrift

      xvbrk-kidno = xvbrk-vbeln.

    ENDIF.

    PERFORM xvbrk_kidno_fill.       >>>>

So if the field is not filled and it is a credit memo the logic in 'xvbrk_kidno_fill' applies.

If you have already filled the field in your custom data transfer routine this cose will have

no effect.

I hope this helps

Kind regards

brian

former_member204407
Active Contributor
0 Kudos

Hi,

Check in Delivery to Billing copy control remove the "Reference Number" save it then try to create Billing document

observe in accounting document  will get only current billing document number as Reference number also Reference filed with empty in Billing Header

Try and update your feedback.

Regards,

Krishna.

atif_bhatti
Participant
0 Kudos

thanks for the reply

I hope this would not remove the field KIDNO?

I have tried tcode VTFL but could not able to see "Reference Number"

former_member204407
Active Contributor
0 Kudos

Hi

Go to Change mode ,Select your Delivery and Billing type click on Details icon

remove it and save.

now create billing document and observe reference field in Billing Header.

Regards,

Krishna.

atif_bhatti
Participant
0 Kudos

Hi Krishna

I have not done it before therefore the question might be absurd.

I could not find the key word Reference Number in list.

and i tried to press f1 to change the mode, I guess I dont have rights to do so.

former_member204407
Active Contributor
0 Kudos

Yes!..

as per your screen its clearly stating the info.

Check with your Basis team.

Krishna.

atif_bhatti
Participant
0 Kudos

I will fix the security issue,

but I can't see Reference Number in the list.

thanks

former_member204407
Active Contributor
0 Kudos

Hi,

Go to VTFL click on change mode button then select Delivery & Billing Document types

select Details button

save it and try.

Regards,

Krishna.

atif_bhatti
Participant
0 Kudos

That is spoon feeding hehe

I will try

kyusufzai
Participant
0 Kudos

Hi

  Please check below thread. Transfer fields from billing to FI document using Exits.

http://scn.sap.com/thread/1927732

Hope this helps...

kyusufzai
Participant
0 Kudos

Hi

You can write a code to clear VBRK-KIDNO in exit  RV60AFZC under

FORM USEREXIT_FILL_VBRK_VBRP.

Please check if it works for you.

Thanks

atif_bhatti
Participant
0 Kudos

Have tried it but it did not work !

I simply put te following lines to see if it works but unfortunately it did'nt.

vbrk-kidno = '1122'.

  xvbrk-kidno = '1122'.

thanks

for your help any other possiblity?

atif_bhatti
Participant
0 Kudos

One more thing I like to add,

there is a FM COMPUTE_CHECKNUM_NO_001 which compute the KIDNO.

this FM is called after the exit  RV60AFZC under FORM USEREXIT_FILL_VBRK_VBRP.

so anything will be over written by the FM.

Any user exit or enhancement after this user exit would probably solve the issue.

thanks

kyusufzai
Participant
0 Kudos

I think this can not be done via SD billing exit you need to find out any FI related exit.