Skip to Content

BSTNK_VF not appearing in VBRK

Hi

My issue is that Customer PO field is filled in Credit memo line item. But the PO number is visible in some case but not visible in some other cases in VBRK field. The G2 document is created with reference to CR. I checked VTFA settings. It has A maintained in Reference number and B in Assignment number.But still the PO number is not appearing in some cases.

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Sep 02, 2013 at 10:08 AM

    Hi,

    in the sales order BSTKD (PO number) could be on header or item level.

    This is stored in VBKD. For header the POSNR is empty.

    Please check your orders if they are maintained on item which would make it hard for the billing document on header level.

    BR

    Robert

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Sep 02, 2013 at 05:54 PM

    Hi

    The functionality of the filling of the 'Customer purchase order number'
    (BSTNK_VF) depends on the setting in the copy control for the 'Reference
    number' (XBLNR_FI) as you pointed out.
    Only if the customizing is XBLNR_FI = 'A', then the reference number
    for FI will be filled with the customer purchase order number.

    In the case of a credit memo request it is normally created with reference to an invoice

    Here the item data transfer routnine FV45C052 would be used and

    the 'reference number for FI' (XBLNR) will be taken over from the invoice:

    The coding logic is seen here when you create a billing document in VF01

    LV60AA93

    FORM VBRK_VBRP_FUELLEN

    ...

    * setzen Referenznummer und Zuordnungsnummer

    IF vbrk-xblnr = space.

    CASE *tvcpf-xblnr_fi.

    WHEN 'A'.

    IF vbkd-bstkd IS INITIAL.

    vbrk-xblnr = vbak-bstnk.

    vbrk-bstnk_vf = vbak-bstnk.

    ELSE.

    vbrk-xblnr = vbkd-bstkd.

    vbrk-bstnk_vf = vbkd-bstkd.

    ENDIF.

    WHEN 'B'.

    vbrk-xblnr = vbak-vbeln.

    ENDCASE.

    ...

    You should check the processing of each case. You can acheive the result you are looking for consistently regardless of the scenario with your own ITEM data transfer routine.

    Hope this helps

    Kind regards

    Brian

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.