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: 

Which user-exit will update the billing date field on deliver note header.

Former Member
0 Kudos

A user exit need to be implemented to update the billing date field on the delivery note header with two additional business days from the default date. The default billing date is the same date of post goods issue.

· Billing Date field in Delivery Note: Table: LIKP Field: FKDAT

Check conditions:

1. Delivery Note Type

2. Delivering Plant

3. Destination Ship to address country.

Please let me know the user-exit for the above requirement. In VL01N or VL02N transactions if user clicks Post Goods Issue button this user exit needs to be triggered.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

check the subroutine FORM <b>userexit_save_document_prepare</b> in the include program <b>MV50AFZ1</b>

4 REPLIES 4

Former Member
0 Kudos

check the subroutine FORM <b>userexit_save_document_prepare</b> in the include program <b>MV50AFZ1</b>

0 Kudos

To write the code in the subroutine FORM userexit_save_document_prepare in the include program MV50AFZ1, <b>It is asking access key</b>. Is there alternate User-exit or BADI ?????????

0 Kudos

Hi Nagaraju,

u can get the access key with the help of ur BASIS team, i've used the same exit to change the value of <b>FKDAT</b>, here is the code for the same

FORM userexit_save_document_prepare.

r_likp = xlikp.

  • r_likp-wadat_ist = r_likp-wadat_ist + 1.

r_likp-wadat_ist = sy-datum + 1.

  • Fetch the next working day

CALL FUNCTION 'BKK_GET_NEXT_WORKDAY'

EXPORTING

i_date = r_likp-wadat_ist

i_calendar1 = k_factory_calendar_us

IMPORTING

e_workday = r_likp-wadat_ist

  • EXCEPTIONS

  • CALENDAR_ERROR = 1

  • OTHERS = 2

.

IF sy-subrc EQ 0.

r_likp-fkdat = r_likp-wadat_ist.

  • Modify the internal table with the next working day

LOOP AT xlikp.

MODIFY xlikp FROM r_likp TRANSPORTING wadat_ist

fkdat.

ENDLOOP. " LOOP AT XLIKP.

ENDIF. " IF SY-SUBRC EQ 0.

ENDFORM. "USEREXIT_SAVE_DOCUMENT_PREPARE

these are the list of BADI's that are triggered during <b>PGI</b>

LE_SHP_GOODSMOVEMENT

BADI_SD_SALES_BASIC

ATP_PUBLISH_RESULTS

MB_QUAN_CHECK_BADI

MB_CHECK_LINE_BADI

FAGL_PERIOD_CHECK

AC_DOCUMENT

FI_LIMIT_PROCESS

AC_QUANTITY_GET

FMRE_BUS_PROCESS

FI_SL_BADI_DOCSELECT

FI_SL_BADI_POPER

EXIT_XFMPR1_001

UKM_R3_ACTIVATE

MB_DOCUMENT_BADI

MB_DOC_BADI_INTERNAL

DELIVERY_PUBLISH

0 Kudos

Thanx a lot Rajesh.