cancel
Showing results for 
Search instead for 
Did you mean: 

Default Setting for BSEG-REBZG field in all Sales Orders

Former Member
0 Kudos
4,316

Hi,

We are looking at setting a default value for the BSEG-REBZG field so that the due date for the Sales Order is determined by the payment terms? How do we stop these from being due immediately after creation?

Thanks,

Mounika.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Refer to OSS note 17410

We have the same issue and here's what we did to resolve it:

- create a user exit to automatically populate the "Invoice Reference Field" (BSEG-REBZG) for all credit memos.

Reward points if found helpfull..

Cheers,

Chandra Sekhar.

Answers (3)

Answers (3)

Former Member
0 Kudos

Dear all,

After a long search outside SDN I found the right UserExit. For more details about what UserExit exactly to use you can refer to SAP OSS Note 301077 which is applicable up to release 600.

Consequently I’ve used successfully UserExit EXIT_SAPLV60B_002 which is part of Enhancement SDVFX002 and uses include ZXVVFU02. This UserExit is described in the mentioned OSS Note as:

• EXIT_SAPLV60B_002: Changes the ACCIT vendor line.

In this exit, you can influence the vendor line of the accounting document.

This exit is processed from the VBRK document header after structure ACCIT is filled.

I’ve applied the following code in the include:



*&---------------------------------------------------------------------*
*&  Include           ZXVVFU02
*&---------------------------------------------------------------------*
* Lokale Schnittstelle:
*  IMPORTING
*     VALUE(XACCIT) LIKE  ACCIT STRUCTURE  ACCIT
*     VALUE(VBRK) LIKE  VBRK STRUCTURE  VBRK
*     REFERENCE(DOC_NUMBER) LIKE  VBRK-VBELN OPTIONAL
*  EXPORTING
*     VALUE(XACCIT) LIKE  ACCIT STRUCTURE  ACCIT
*  TABLES
*      CVBRP STRUCTURE  VBRPVB OPTIONAL
*      CKOMV STRUCTURE  KOMV
*-----------------------------------------------------------------------
* Called by Function Module: EXIT_SAPLV60B_002
* Part of SD Enhancement   : SDVFX002 - User exit for A/R line in
*                            transfer to accounting
*-----------------------------------------------------------------------
************************************************************************
* PROGRAM INFORMATION
************************************************************************
* PROGRAM.......  ZXVVFU02
* TITLE.........  User exit EXIT_SAPLV60B_002 (project ZINV_SD)
* AUTHOR........  Arie Folkers (AFOLKERS)
* DATE WRITTEN..  17-4-2008
* ENH.PROJECT...  ZINV_SD
* R/3 RELEASE...  SAP ECC 6.0
* CR LOG........  
* RELEASE.......  
* TRANSPORTNR...  
* SPECIFICATION.  133
* COPIED FROM...  n/a
*----------------------------------------------------------------------*
* PROGRAM FUNCTION:
*  UserExit to set Invoice Reference (BSEG-REBZG) to 'V' in order to
*  use the Payment Terms for Due Date calculation during Credit Note
*  processing.
*----------------------------------------------------------------------*
* PROGRAM TYPE.. INCLUDE
* DEV. CLASS.... ZUX0
* LOGICAL DB.... n/a
************************************************************************

************************************************************************
* CHANGE HISTORY
************************************************************************
* DATE CHANGE... <date in DD.MM.YYYY format>
* AUTHOR........ <author>
* CHANGE DESCR.. <change description>
* R/3 RELEASE... <release>
* CR LOG........ <change release log number>
* RELEASE....... <transport release>
* TRANSPORTNR... <transport number>
************************************************************************

* Only process Credit Notes...
CHECK vbrk-vbtyp = 'O'.

* Set Invoice Reference to V...
xaccit-rebzg = 'V'.

This worked fine for us.

Arie Folkers

SAP ECC 6.0

Former Member
0 Kudos

Dear all,

We have a similar issue were we need to automatically set field [BSEG-REBZG] to “V”. However, I’m struggling to find the right place to do so. I’ve tried UserExit of enhancement in include where I’ve populate field [XACCIT-REBZG] with value “V” as described in the following SDN thread:

However, this doesn’t work; if I check the Financial Document using transaction <FB03>, the field [BSEG-REBZG] is not set with “V” and consequently the document is set for due on the baseline date. I’ve checked OSS Note 17410 but this Note only describes the issue and suggests setting field [BSEG-REBZG] to “V”; unfortunately it doesn’t tell me how to do so.

In this thread it seems you have found the right place to automatically set [BSEG-REBZG] to “V”. Therefore, I would like to ask you, if you would be so kind to share this with us on SDN? Could you please describe where and how you implemented the correct UserExit or Enhancement Point?

Many thanks in advance and kind regards,

Arie Folkers

SAP ECC 6.0

REVATHI09
Newcomer
0 Kudos

Rules for posting key 40 and acct 530000 set incorrectly for "REBZG" field

Message no. F5272

Diagnosis

One of the rules specifies that the field demands a required entry, the other rule says that the field is to be suppressed.

Procedure

Correct one of the two rules for the field selection.

  • You find the field status group in the G/L account master record:
    Execute function
  • You can find the posting key in the Financial Accounting Implementation Guide in the activity
    Define posting key.

kindly rectify this error Screenshot 2025-04-16 232940.pngScreenshot 2025-04-16 175014.png