Skip to Content
author's profile photo Former Member
Former Member

How to add fields to BAPI_FIXEDASSET_CREATE1

Hi,

I am working in 4.6 C and here the master data ANLA we have 4 Zfields.

I have done the append structure to bapi. I am able to create the asset But, its not getting updated in the AS03.

Please let me know what to do.

Is it possible if i create EXTENSIONIN the fields will get updated. If so, Please let me know the steps.

Regards,

Prathima Talari.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Posted on May 25, 2011 at 09:43 AM

    Weren't you supposed to add your customer fields to table ANLU ? (CI_ANLU)

    (Check SMOD Enhancement AIST0002)

    Regards,

    Raymond

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Raymond Giuseppi

      i have ignored that thread. as per ur posts i have done the following steps.

      i have created the 4 fields in CI_ANLU

      ZZORD46 LAND1 country

      ZZORD47 REGIO region

      ZZORD48 ZZORD48 County

      ZZORD49 ZZORD49 City

      still its not working.

      step 1 :

      DATA :

      ex_anlu LIKE bapi_te_anlu ,

      ex_marax LIKE bapi_te_marax ,

      it_extension LIKE bapiparex OCCURS 0 WITH HEADER LINE,

      it_extensionx LIKE bapiparexx OCCURS 0 WITH HEADER LINE.

      Constants: c_bapi_te_anlu(12) TYPE c VALUE 'BAPI_TE_ANLU'.

      ex_anlu-ZZORD46 = 'US'.

      ex_anlu-ZZORD47 = 'FL'.

      ex_anlu-ZZORD48 = 'DUVA'.

      ex_anlu-ZZORD49 = 'JACK'.

      it_extension-structure = c_bapi_te_anlu.

      it_extension-valuepart1 = ex_anlu.

      APPEND it_extension.

      and i have passed this internal table to bapi extension.

      2. I have done the following in the exit in the enhancement AIST0002 suggested by you .

      in this exit

      EXIT_SAPL1022_001

      in this include

      INCLUDE ZXAISU05 .

      Code:

      anlu = i_anlu.

      e_anlu = i_anlu.

      in this exit

      EXIT_SAPLAIST_002

      in this include

      INCLUDE ZXAISU03

      Code:

      move i_anla-zzord46 to i_anlu-zzord46.

      move i_anla-zzord47 to i_anlu-zzord47.

      move i_anla-zzord48 to i_anlu-zzord48.

      move i_anla-zzord49 to i_anlu-zzord49.

      • move parameters of function module EXIT_SAPLAIST_002 to global

      • variables

      anla = i_anla.

      anlv = i_anlv.

      anlu = i_anlu.

      gd_mode = i_mode.

      gd_xsubno = i_xsubno.

      gt_anlz[] = t_anlz[].

      gt_anlb[] = t_anlb[].

      in this exit

      EXIT_SAPLAIST_003

      in this include

      INCLUDE ZXAISU04 .

      Code:

      data: ls_anlu like anlu.

      import ls_anlu from memory id 'anlu_flds'.

      if sy-subrc = 0.

      move ls_anlu-zzord46 to anlu-zzord46.

      move ls_anlu-zzord47 to anlu-zzord47.

      move ls_anlu-zzord48 to anlu-zzord48.

      move ls_anlu-zzord49 to anlu-zzord49.

      free memory id 'anlu_flds'.

      endif.

      move-corresponding anlu to e_anlu.

      Please let me know if i need to do anything else.

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.