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: 

User Exit or BADI For FB60

Former Member
0 Kudos

hi alll

I need to find an user exit / BADI to get the company code on the display screen as soon as the Invoice is entered.

When user uploads the file with invoice details, the program should find the company code based on the cost center of the first line of the invoice, and the respective company code should be populated in the header section of the transaction FB60 .

Regards

Sunanda

10 REPLIES 10

Former Member
0 Kudos

Hi Sunanda,

Try these one :

F050S001 FIDCMT, FIDCC1, FIDCC2: Edit user-defined IDoc segment

F050S002 FIDCC1: Change IDoc/do not send

F050S003 FIDCC2: Change IDoc/do not send

F050S004 FIDCMT, FIDCC1, FIDCC2: Change outbound IDoc/do not send

F050S005 FIDCMT, FIDCC1, FIDCC2 Inbound IDoc: Change FI document

F050S006 FI Outgoing IDoc: Reset Clearing in FI Document

F050S007 FIDCCH Outbound: Influence on IDoc for Document Change

F180A001 Balance Sheet Adjustment

FARC0002 Additional Checks for Archiving MM Vendor Master Data

RFAVIS01 Customer Exit for Changing Payment Advice Segment Text

RFEPOS00 Line item display: Checking of selection conditions

RFKORIEX Automatic correspondence

SAPLF051 Workflow for FI (pre-capture, release for payment)

Hope this helps,

Erwan

Former Member
0 Kudos

Hi,

Can you be bit more specific about your requirement ?

Are you running a BDC for this ?

Pravat.

0 Kudos

Hi

I need to populate the Company code in Txn MIRO with the company code of the PO that's been processed.

0 Kudos

Sorry

I need to populate the Company code in Txn FB60 with the company code of the PO that's been processed

That similar requirement i am having for MIRO Txn also , please look into the both questions .

And is there any BADI , for this requirement .

0 Kudos

Hi,

I think you can put a check in enhancement - LMR1M001. I am not sure whether there are any exits / BAdIs that will enable you to populate the company code.You can also check BAdI - INVOICE_UPDATE.

You can put a check and throw an error message in case the PO company code and company code in MIRo are different.

Hope it helps.

Pravat.

0 Kudos

This user exit and BADI i know , but my requirement is to populate Company Code not to throw an error message .

Company Code should populate on the basis of processed PO's .

0 Kudos

hi ,

Also check OSS Note - 392342.

Pravat.

0 Kudos

Hi

This OSS note is sayong that using invoice_update BADI i can not populate data in header section of MIRO

Please try to give me any relevant answer .

Regards

Sunanda

0 Kudos

sunanda,

Any luck on this...? you can use badi 'BADI_FDCB_SUBBAS03’...MIRO is more developer friendly ..I think this can be done...If still not solved email me on kotlanarahari@yahool.com..

Can any one add me to this group...I tried to couple of forums

-Hari.

Former Member
0 Kudos

HI,

You can find the BADI your self, Check the class CL_EXITHANDLER.

follow the below steps to find the suitable BADI for your case ..

1) Goto se24 (Display class cl_exithandler)

2) Double click on the method GET_INSTANCE.

3) Put a break point at Line no.25 (CASE sy-subrc).

Now

4) Execute SAP standard transaction

5) Press the required button for which you need to write an exit logic, the execution will stop at the break point.

6) Check the values of variable 'exit_name', it will give you the BADI name called at that time.

7) This way you will find all the BADIs called on click of any button in any transaction

if you follow this 7 steps, you will find a suitable BADI.

and also refer the thread

Regards

Sudheer