04-18-2011 9:05 PM
Hi.
In transaction FB70 I need to save the document number in field bkpf-xblnr, I tried with BTE SAMPLE_PROCESS_00001120, but in this moment, the document number has not been generated yet. Any ideas ??? Thanks for your help.
04-19-2011 3:20 AM
Hi mvlopez,
Check this very fast and new article posted in SDN. I'm sure it can help you to find a specific enhancement.
[Steps for Finding User-Exit or Badiu2019s|http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/0041d4e6-1e43-2e10-0db4-9386abe98fe6?quicklink=index&overridelayout=true]
Regards,
04-19-2011 6:19 AM
hi ,
Please check all EXIT in fb70
Exit Name Description
F050S001 FIDCMT, FIDCC1, FIDCC2: Edit user-defined IDoc segment
F050S002 FIDCC1: Change IDoc/do not send
F050S003 FIDCC2: Change IDoc/do not send
F050S004 FIDCMT, FIDCC1, FIDCC2: Change outbound IDoc/do not send
F050S005 FIDCMT, FIDCC1, FIDCC2 Inbound IDoc: Change FI document
F050S006 FI Outgoing IDoc: Reset Clearing in FI Document
F050S007 FIDCCH Outbound: Influence on IDoc for Document Change
F180A001 Balance Sheet Adjustment
FARC0002 Additional Checks for Archiving MM Vendor Master Data
FEDI0001 Function Exits for EDI in FI
RFAVIS01 Customer Exit for Changing Payment Advice Segment Text
RFEPOS00 Line item display: Checking of selection conditions
RFKORIEX Automatic correspondence
SAPLF051 Workflow for FI (pre-capture, release for payment)
regards
Deepak.
04-19-2011 6:22 AM
hi ,
If you want to Find Correct EXit or BADI or BAPI which is being called
while saving is throug FM
SXV_GET_CLIF_BY_NAME
function sxv_get_clif_by_name .
*"----------------------------------------------------------------------
*"*"Lokale Schnittstelle:
*" IMPORTING
*" VALUE(NAME)
*" VALUE(PREFIX) TYPE SEEX_CLIF_PREFIX
*" EXPORTING
*" VALUE(CLIF) TYPE SEOCLSNAME
*"----------------------------------------------------------------------
call function 'SXV_ADD_PREFIX'
exporting
name = name
prefix = prefix
importing
new_name = clif.
endfunction.
add debugger in this call function you will get name
regards
Deepak.
04-20-2011 8:49 PM
Thanks for your answer, i found the badi BADI_FDCB_SUBBAS04, it is activated after the document number is created, i created the badi ZBADI_FDCB_SUBBAS04 using transaction SE19, but now i have another problem, it has 2 methods, PUT_DATA_TO_SCREEN_OBJECT and GET_DATA_FROM_SCREEN_OBJECT, i put a break point in both, but when i create a document in t-code FB70, it doesn't stop in break points. the New badi is active, the methods are also active.
am i skipping some steps ???? Thanks fro your help.
04-21-2011 5:54 AM
Hi,
Put a hard coded break point in the BADI code and then while debugging activate the UPDATE DEBUGGING then i think the control should reach at that point. Try this it might help.
Regards,
Ashish
04-19-2011 7:11 AM
>
> In transaction FB70 I need to save the document number in field bkpf-xblnr, I tried with BTE SAMPLE_PROCESS_00001120, but in this moment, the document number has not been generated yet.
Hello,
As per the BTE documentation the document number is not generated when this BTE is called, hence the issue!
BTE 1120 documentation states:
This process is always reached when all the final checks have been completed before a document is updated. However, at this stage, the document number has not yet been assigned.
You can check out if the FI Substitution(GGB1) for the "complete document"(Call Up point 0003) helps.
Standard SAP doesn't allow you to "substitute" any BKPF & BSEG fields for call up point 0003. You can refer to the OSS note - Note 42615 - Substitution in FI - on how to release the field(BKPF-XBLNR) for substitution.
BR,
Suhas
08-22-2014 2:27 PM
I was in the same situation and this is how I solved it
Step 1 - Implement BTE 00001030
Step - A
T-Code - FIBF --> Setting --> Products --> of a customer
Create a new product and make sure it is active
Step - B
T-Code - FIBF --> Environment --> Info Systems P/S --> click execute with default search
Select 00001030 and click Sample function module
Copy Function module to a Z Function module (Z_00001030) to a Z function group
Step - C
Now in T-Code FIBF --> Settings --> P/S Modules --> of a customer
Create new entry for even 00001030 --> for product created in Step A,
and use Function module created in Step - B
Code in FM Z_00001030 - This is to trigger the Business event BKPF-CREATED
READ TABLE t_bkpf ASSIGNING <fs_bkpf_ny> INDEX 1.
CONCATENATE <fs_bkpf_ny>-bukrs <fs_bkpf_ny>-belnr <fs_bkpf_ny>-gjahr INTO lv_objkey.
ls_creator-otype = 'US'.
ls_creator-objid = <fs_bkpf_ny>-usnam.
CALL FUNCTION 'SWE_EVENT_CREATE'
EXPORTING
objtype = 'BKPF'
objkey = lv_objkey
event = 'CREATED'
creator = ls_creator
IMPORTING
event_id = lv_eventid
TABLES
event_container = lt_container
EXCEPTIONS
objtype_not_found = 1
OTHERS = 2.
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
Step - 2 Configure Function module for event CREATED of Object BKPF
T-Code SWETYPV
Add Object Category = BOR Object
Object Type = BKPF
Event = FM
Receiver Call Function module
Receiver Function Module : Z_FI_UPDATE_POSTING
Click Linkage Activated
Do the following cod in the FM
Z_FI_UPDATE_POSTING
With parameters as below
*"----------------------------------------------------------------------
*"*"Local Interface:
*" IMPORTING
*" VALUE(EVENT) LIKE SWETYPECOU-EVENT
*" VALUE(RECTYPE) LIKE SWETYPECOU-RECTYPE
*" VALUE(OBJTYPE) LIKE SWETYPECOU-OBJTYPE
*" VALUE(OBJKEY) LIKE SWEINSTCOU-OBJKEY
*" TABLES
*" EVENT_CONTAINER STRUCTURE SWCONT
*"----------------------------------------------------------------------
Write code here to to get Document number
DATA: v_mode TYPE c,
v_belnr TYPE belnr_d,
v_gjahr TYPE gjahr,
v_bukrs TYPE bukrs,
v_blart TYPE blart.
v_bukrs = objkey+0(4).
v_belnr = objkey+4(10).
v_gjahr = objkey+14(4).
and write code to post your document changes - BDC or FM