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: 

Add new field in output of FBL1N

Former Member
0 Kudos

Hi Experts,

How can I and new field in output of FBL!N.

Can you show me the steps.

Pooja

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

To Solve your purpose you need to extend standard structure RFPOSX.

and impliment BTE 1650.

For details go through the below link:

[Adding fileds to FBL1N output |;.

Regards

DKS

9 REPLIES 9

Former Member
0 Kudos

Hi,

To Solve your purpose you need to extend standard structure RFPOSX.

and impliment BTE 1650.

For details go through the below link:

[Adding fileds to FBL1N output |;.

Regards

DKS

0 Kudos

Hi Expert,

Can you explanin me how to impliment BTE 1650 ?

Thanks in advance

Pooja

0 Kudos

Hi Pooja,

=> goto T code FIBF, from menu Environmeny=> Info System (P/S)=>Execute.

Select the event 00001650 LINE ITEM DISPLAY: Add to data per line and click on Documentation (or press Ctrl +F1) on the application toolbar and read it first.

- create your FM - copy it from the FM SAMPLE_INTERFACE_00001650. There u'll have to put your data selection logic.

- go to settings->products->...of a customer and register your 'product' there. don't forget 2 mark it active.

- go to settings->p/s modules->...of a customer and register your event (00001650) along with the product from the previous item, and write your newly created FM.

- Add new fields to structure RFPOS and execute the program RFPOSXEXTEND.

Regards

DKS

0 Kudos

Hi Expert,

Executing the program RFPOSXEXTEND gives error : "End phase 002 ***********************************".

Pooja

0 Kudos

Hi,

- Add the new fields to the structure RFPOSX as well.

- Then execute the report RFPOSXEXTEND and check.

Regards

DKS

0 Kudos

Hi Expert,

I have added ZMyStruct structure in REPOS. And ZMyStruct1 structure in REPOSX with same field name.

But still RFPOSXEXTEND is showing aboved mentioned error.

Thanks and Regards.

Pooja

0 Kudos

Hi,

Please check and activate the structures.

I had done with the same process without any error.

Can you give me the eror details.

Regards

DKS

0 Kudos

Hi Expert,

Thanks, I have corrected u201CNameu201D mistake in structure. Now RFPOSXEXTEND is run successfully.

Still not getting field which is added in structure.

Below describing what I have done.

Create copy of SAMPLE_INTERFACE_00001650 to Z_FI_INTERFACE_00001650.

Register product from Settings->products->..of a customer

Product : ZFI

Text : BTE Products for FI Exit

Activation Checked.

Register Event from Settings->p/s module->..of acustomer

Event : 00001650

Product : ZFI

Function Module : Z_FI_INTERFACE_00001650

(Function is created in new function group Z_FUN_GRP.)

Add new Structure ZMyStruct(KUNNR,NAMEJ,LIFNR,NAMEK) in RFPOS.

Add new Structure ZMyStruct1(KUNNR,NAMEJ,LIFNR,NAMEK) in RFPOSX.

Below Mentioned Code is written in Z_FI_INTERFACE_00001650

*****************************************************************************

FUNCTION Z_FI_INTERFACE_00001650.

*"----


""Local Interface:

*" IMPORTING

*" VALUE(I_POSTAB) LIKE RFPOS STRUCTURE RFPOS

*" EXPORTING

*" VALUE(E_POSTAB) LIKE RFPOS STRUCTURE RFPOS

*"----


*----


Initialize Output by using the following line -


E_POSTAB = I_POSTAB.

TABLES : bseg, kna1, lfa1.

IF sy-tcode = 'FBL1N'.

CLEAR : bseg.

SELECT SINGLE *

FROM bseg

WHERE bukrs = i_postab-bukrs

AND belnr = i_postab-belnr

AND gjahr = i_postab-gjahr

AND koart = 'K'.

IF sy-subrc EQ 0.

e_postab-lifnr = bseg-lifnr.

CLEAR: lfa1.

SELECT SINGLE *

FROM lfa1

WHERE lifnr = bseg-lifnr.

IF sy-subrc EQ 0.

e_postab-namek = lfa1-name1.

ENDIF.

ENDIF.

CLEAR : bseg.

SELECT SINGLE *

FROM bseg

WHERE bukrs = i_postab-bukrs

AND belnr = i_postab-belnr

AND gjahr = i_postab-gjahr

AND koart = 'D'.

IF sy-subrc EQ 0.

e_postab-kunnr = bseg-kunnr.

CLEAR: kna1.

SELECT SINGLE *

FROM kna1

WHERE kunnr = bseg-kunnr.

IF sy-subrc EQ 0.

e_postab-namej = kna1-name1.

ENDIF.

ENDIF.

ENDIF.

ENDFUNCTION.

**************************************************************

Saved and Activated.

Start report RFPOSXEXTEND. And run it successfully.

Still not getting fields in report FBL1N which I have added in RFPOS and RFPOSX.

Thanks and regards,

Pooja

0 Kudos

Hi Pooja,

First check now the newly added fields are available in structure RFPOSXEXT or not?

If yes, then the newly added field may be hidden in the output.

Click on the Change layout (Ctrl+F8) button on the application toolbar of the output.

Now the list of fields on the right side are hidden fields. If the new added field is in that list, select that line and click the buttons

Show selected fields and press the button Copy.

Now the new field will be shown in the output.

Regards

DKS