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: 

Custom Field value gets cleared in BADI_FDCB_SUBBAS04

Former Member
0 Kudos
588

Hi Gurus,

I have implemented BADI BADI_FDCB_SUBBAS04, I have taken reference from this link

http://wiki.sdn.sap.com/wiki/display/Snippets/Displaycustomerfieldsinheaderoflogisticsinvoiceverification+transactions

But then also My custom fields are gets cleared when I enter the data and press enter, I dont know why its not able to export and import the value.

Can you tell me what may be the reason for this.

IF o_badi_fdcb_subbas04 IS INITIAL.

    CALL METHOD cl_exithandler=>get_instance_for_subscreens
      CHANGING
        instance                      = o_badi_fdcb_subbas04
      EXCEPTIONS
        no_reference                  = 1
        no_interface_reference        = 2
        no_exit_interface             = 3
        data_incons_in_exit_managem   = 4
        class_not_implement_interface = 5
        OTHERS                        = 6.
    IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.

  ENDIF.

* object created  ?
  CHECK NOT o_badi_fdcb_subbas04 IS INITIAL.

* get data from main screen

  CALL METHOD o_badi_fdcb_subbas04->get_data_from_screen_object
    IMPORTING
      ex_invfo = invfo.

4 REPLIES 4

former_member182371
Active Contributor
0 Kudos
209

Hi,

check these threads:

1.-

2.-

Best regards.

Edited by: Pablo Casamayor on Feb 6, 2010 5:49 PM

Former Member
0 Kudos
209

Solved myself, i was doing a silly mistake

0 Kudos
209

HI Former Member ,

I am also facing the same problem , kindly let me know what u did to solve the problem .

Thanks in Advance!!!!!

0 Kudos
209

Hi,

read the threads included above to see if any is your case.

Best regards,

Pablo