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: 

Fill data to Z fileds into INVOIC02 idoc

Former Member
0 Kudos

Hello Folks,

I need to pass data to screen fileds (custom fields) into BDC session generated by IDOC INVOIC02, Since these fileds are custom fields,maintaining T076K / OBCC. I have extended the IDOC and added extra segment and loaded data into it.

Parent segement :E1EDK01

Child Segment: ZINVOIC01_01

I tried using exit EXIT_SAPLIEDI_002 but its not triggered when i tried to debug from WE19.

Please let me know if anyone has faced similar issue.

Thanks in advance.

Regards

Aradhya.J.M.

1 ACCEPTED SOLUTION

nabheetscn
Active Contributor
0 Kudos

Hi Aradhya

The posting function module creates a BDC. So you can add the bDC code for your field in EXIT_SAPLIEDI_102 in table document_data,tax_data and additional_data

Thanks

Nabheet

4 REPLIES 4

nabheetscn
Active Contributor
0 Kudos

Hi Aradhya

The posting function module creates a BDC. So you can add the bDC code for your field in EXIT_SAPLIEDI_102 in table document_data,tax_data and additional_data

Thanks

Nabheet

0 Kudos

Hello Madan,

Thanks for your reply,

I have deployed my custom code into exit EXIT_SAPLIEDI_102, problem is when i try to debug from WE19 execution is not going into that exit.(Means exit is not triggering )

       if verarbeitung = 'FI'. --> condition is true
* ----- Ergänzen der Daten vor der Buchung -----------------------------
        call customer-function '102'
                    exporting  idoc_contrl_index   = idoc_contrl_index
                    importing  i_fimsg             = user_msg
                       tables  idoc_contrl         = idoc_contrl
                               idoc_data           = idoc_data
                               document_data       = beleg_daten
                               tax_data            = steuer_daten
                               additional_data     = zusatz_daten
                    exceptions others              = 01.
      else.
*-- MM --
        call customer-function '112'
                    exporting  idoc_contrl_index   = idoc_contrl_index
                    importing  i_fimsg             = user_msg
                       tables  idoc_contrl         = idoc_contrl
                               idoc_data           = idoc_data
                               t_bbkpf             = xbbkpf
                               t_rbseg             = xrbseg
                               t_rbset             = xrbset
                    exceptions others              = 01.
      endif.

0 Kudos

Please create a project in CMOD for enahcnement FEDI0001 and activate it then it will trigger.

0 Kudos

Thanks Madan, Its working.Appreciative