Application Development and Automation 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: 
Read only

Custom code to copy FBL3N.

Former Member
0 Likes
2,461

Hi Experts,

    I would need your help in this scenario. The requirement is to copy FBL3N in a new custom code and add few fields to it, which is not desirable on the standard RFITEMGL.

    I had copied RFITEMGL and its Includes in a Custom program. For the extra field, I added it as an Append structure to RFPOSXEXT. As well, included my bit of code in the copied code. But, when I am trying to execute it, the report is returning 0 records, whereas, the standard RFITEMGL is returning a good number. Not able to understand, where is the fault. Am I missing any parameters.

   The whole copy is intact and none of the modules has been touched. I have inserted a subroutine just for 'FI_ITEMS_DISPLAY' which updates the new field as mentioned above to the final table IT_POS used in the FM. What am I missing? Kindly help.

Hi Experts,

    I would need your help in this scenario. The requirement is to copy FBL3N in a new custom code and add few fields to it, which is not desirable on the standard RFITEMGL.

    I had copied RFITEMGL and its Includes in a Custom program. For the extra field, I added it as an Append structure to RFPOSXEXT. As well, included my bit of code in the copied code. But, when I am trying to execute it, the report is returning 0 records, whereas, the standard RFITEMGL is returning a good number. Not able to understand, where is the fault. Am I missing any parameters.

   The whole copy is intact and none of the modules has been touched. I have inserted a subroutine just for 'FI_ITEMS_DISPLAY' which updates the new field as mentioned above to the final table IT_POS used in the FM. What am I missing? Kindly help.

7 REPLIES 7
Read only

ThomasZloch
Active Contributor
0 Likes
1,878

Quite to the contrary, it is not desirable to copy standard transactions, this has been discussed frequently here. You already mentioned structure RFPOSXEXT, in combination with the right user exit (please search for information), you should be able to add and fill additional columns in FBL3N, without copying the underlying code to Z-space.

Thomas

Read only

0 Likes
1,878

Hi Thomas,

    Thanks for your reply. But, the Customer wants to create a new report based on this one. Even I had tried to convince the same, but guess Customers the King .. So the challenge is to inculcate the same in a Z program and execute it similarly to the one as in FBL3N.

Read only

0 Likes
1,878

Could you suggest your Customer to let you use an Authority-check in the exit/badi (*) that complement the FI detail items, so, if not allowed, customer fields would be displayed with initial values.

Regards,

Raymond

(*) BTE 00001650 or BAdI FI_ITEMS_CH_DATA (better performance than the BTE which is called item by item.)

Read only

Former Member
0 Likes
1,878

i) As Thomas mentioned you can add fields in FBL3N itself so no need to have Z version.

ii) have you checked data being passed to ALV FMs before and after your changes?

Rgds

Read only

Former Member
0 Likes
1,878

Hi Amrita,

                what are fields you can added the custom report Program? rfposxext structure what filled your added how to pass the value into it_pos table.

Read only

Former Member
0 Likes
1,878

HI All,

     Thanks for all your suggestions and replies. I really appreciate your time. However, would like to state a few steps here. I have been able to add the field and get its contents, but the only prob remaining is now a Layout.

1. Copy the standard prog to a Custom Prog. Make sure all Includes are Z*.

2. Once done, check wherever the REPID is used, change it to your Custom REPID. Else it will keep on referring to the standard prog and you wont get your data.

3. Keep everything same. For those which exist for standard prog, make the same for your Custom prog as well by copying the parameters used.

4. Check if any BTEs are not overwriting any values. In my case, its not.

5. Here is where I faced the prb. Now solved. Do not add the field explicitly in the FIELDCAT table. It gets overwritten and you wont see your data. So just make sure you are populating it and the FI_ITEMS_DISPLAY will take care of the rest.

   I need help in the last part. If this gets solved, I would have successfully copied a standard program.

Thanks,

Amrita

Read only

0 Likes
1,878

Just one more thing I forgot.

You need to add the Custom field as an Append structure to RFPOS and RFPOSX. Then use program: RFPOSXEXTEND to auto populate the RFPOSXEXT structure. To clear any ALV buffer, BALVBUFDEL program needs to be run to clear any ALV buffer. Your changes will work just fine.