Skip to Content

Add new fields FV60 using BADI_FDCB_SUBBAS04

Hi guys.

I need to add 3 new fields on FV60 transaction. I was able to follow the step that Pablo Casamayor wrote in this wiki

[https://wiki.sdn.sap.com/wiki/display/Snippets/Displaycustomerfieldsinheaderoflogisticsinvoiceverification+transactions]

the fields are showed just in FV60, i wrote a logic to hide them in the others transactions. Until there everything is ok.

2 problems;

1) I dont know what tables or structures i need to append to add the new fields (not all of them). I added the fields on INVFO and BKPF (for FI module). Do i need to add them in another tables as well?

2) the fields are not getting saved. Probably because of the first issue. Or do i need to add sth to get saved ???

Did somebody add new fields on FI enjoy transaction, such as FV60, FV65, FV70, FB60, FB65...???

I need some help here.

Regards

This is my logic on the new dynpro:

PROCESS BEFORE OUTPUT.
MODULE STATUS_0100.

MODULE receive_data.

PROCESS AFTER INPUT.
* get again actual data from main screen
MODULE receive_actual_data.
* enumerate ALL fields on the screen because of field transportation
* with or within a module
** descomentar y agregar los campos necesarios, tienen que estar en
** INVFO
  FIELD:
     invfo-ZZEKGRP,
     invfo-ZZAFNAM,
     invfo-ZZBEDNR.

* send data back to main screen
MODULE USER_COMMAND_0100.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Jan 17, 2011 at 05:16 PM

    Hi Miguel,

    Did you check the documentation which SAP provides with BADI?. When you do this it show that you should look at the documentation for BADI_FDCB_SUBBAS01.

    Checking this documentation it shows the following (excerpt):

    If the values in the FI document are to be saved, the fields must also be in table BKPF or BSEG. If the values in the MM document are to be saved, the fields must be in the structure ACMM_VENDOR_COMP, the view RBKP, and table RBKP.

    Plus

    Example implementation: FI_FDCB_SUBBAS01_EX

    This example should answer your questions.

    Kind regards,

    Robert

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jan 17, 2011 at 04:36 PM

    Hi,

    put a break point in:

    program SAPLFDCB

    include LFDCBI01

    Module (PAI) GET_FORM

    precisely in:

      MOVE-CORRESPONDING invfo TO bkpf.
    * BSEZ-ZTERM (ZTERM from master record) must not be        "Note 305030
    * overwritten by INVFO-ZTERM (ZTERM of vendor/customer     "Note 305030
    * line.                                                    "Note 305030
    

    and check what happens when "MOVE-CORRESPONDING invfo TO bkpf" is done

    Best regards.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 22, 2012 at 01:02 PM

    hi Miguel,

    How can i restrict the field to be displayed to specified Transaction codes?

    Regards,

    Durgesh.

    Add a comment
    10|10000 characters needed characters exceeded

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.