on 09-14-2017 2:53 PM
Hello all,
i try to enhance the transaction BP.
I already know the transactin BUPT.
I already got an extra view and the Z-Fields.
But when i change the content of a z-field, it always displays the old content after saving.
In the transaction BUS3 you customize the fuba for PBO and the fuba for PAI.
I think my fuba for the PAI is not coreckt.
Any Idea? (In the Guides i found everybody enhances the KNA1, i enhanceed the BUT000. could this be the error?)
My Coding:
FUNCTION ZSD_BUT000_PAI.
*"----------------------------------------------------------------------
*"*"Lokale Schnittstelle:
*"----------------------------------------------------------------------
*Im Dynprofeld steht der neue Wert
*BUT000-ZZLO_PUNZART
data: lt_but000 type table of but000,
ls_but000 like LINE OF lt_but000,
lt_messages type bapiret2_t.
field-symbols:
<but000> like line of lt_but000.
constants: lc_bdt_view TYPE bu_sicht value 'ZT_E2',
lc_dynp_struc type fsbp_table_name value 'BUT000'.
check cvi_bdt_adapter=>is_direct_input_active( ) = false.
* step 1: update xo memory from dypro structure
cvi_bdt_adapter=>get_current_bp_data(
exporting
i_table_name = table_name_but000
importing
e_data_table = lt_but000[]
).
IF lt_but000[] is INITIAL.
else.
read TABLE lt_but000 ASSIGNING <but000> INDEX 1.
<but000>-zzlo_punzart = but000-zzlo_punzart.
ENDIF.
cvi_bdt_adapter=>data_pai(
i_table_name = table_name_but000
i_data_new = lt_but000[]
i_validate = false
).
i had found better way:
IF but000 NE ls_but000_old.
CALL FUNCTION 'BUP_BUPA_BUT000_GET'
IMPORTING
e_but000 = l_but000.
IF NOT l_but000 IS INITIAL.
l_but000-zzfield = but000-zzfiled.
CALL FUNCTION 'BUP_BUPA_BUT000_COLLECT'
EXPORTING
i_subname = 'BUT000'
i_but000 = l_but000.
ENDIF.
ENDIF
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello,
I am struggeling with the same problem.
What exactly did you change in BUS7?
How does the implemantion of the function modules look like?
Thank you in advance. Andreas
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Andreas...
found my small Doc. Hope this helps..
BUS7: ( Hier können wir in der Transaktion BP auf unterschiedlichste Zeitpunkte Reagieren)
In unserem Fall benötigen wir den Zeitpunkt:
DSAVE
Wir legen hier einen neuen Satz an mit einem neuen FUBA. Diesen packen wir wieder in unsere Funktionsgruppe.
solved it:
BUS7 is the right Transaction
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I found a nice blog.
https://blogs.sap.com/2013/12/31/fscm-additional-tab-to-business-partner-through-bdt-settings/
BUS7
But i dont know what i have to code in the two fubas. 😕
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
107 | |
12 | |
11 | |
6 | |
5 | |
4 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.