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: 

Print program for FI_CA_PAYMENT_RECEIPT_SAMPL_SF

0 Kudos

Hello,

Does anyone have information on the print program used for the smartform FI_CA_PAYMENT_RECEIPT_SAMPL_SF?

Thanks in advance,

Wonder

23 REPLIES 23

paul_bakker2
Active Contributor
0 Kudos

Hi,

You realise that's just a sample form, right?

Print programs can usually be found via config table TNAPR, fields FONAM (form) and PGNAM (program).

cheers

Paul

0 Kudos

Hi Paul,

Thanks for your response. Yes I know it is just a sample form, that is why I would like to know if there is a standard print program for it, being sample or not. For the details to end up in TNAPR, they first have to be configured first, and for the configuration to be done, you must know upfront what you want to put as form name and program name, which is what I am trying to establish at the moment.

Former Member
0 Kudos

Hi Wonder,

     You can use se37 and try this FM     "/1BCDWB/SF00000112" from there try to execute it.

     Put value on "X_MULTI" parameter.. Ex. '1'. then execute.

Thanks and Best Regards,

Charlie

0 Kudos

Hi Charlie,

Thanks for your response. I am not sure if I can use that FM as a print program in the config because it changes every time the smartform is compiled.

0 Kudos

Hi Wonder,

     You can use a variable to pass it in your FM then. May I know the exact scenario of what you are doing?

Best Regards,

Charlie

0 Kudos

Hi Charlie, simply put, I want to know which program name to configure for that smartform in TNAPR.

0 Kudos

Hi Wonder,

     As far as I am concern, you have to manually put that smartform in TCODE NACE, set it as an output, say for example to Billing.

Please see links below for your reference.

Message Control Structure - Message Control (CA-GTF-BS) - SAP Library

Best Regards,

Charlie

0 Kudos

Hi Charlie,

Yes you are correct, but it must be coupled with a program name.

0 Kudos

Yes, once you've configured it under TCODE NACE then i suppose thats the time the table TNAPR will be updated, and from there you will see the corresponding program name.

Best Regards,

Charlie

0 Kudos

Hi Charlie,

Have you ever done that, because I tend to disagree with you on that one? You need to know the program name upfront. I does not assign it automatically.

Kind Regards

Wonder

0 Kudos

Hi Wonder,

     Again, under TCODE NACE, you will be the one who will assign it there. From there, table TNAPR will be updated. May I know if have you edited the  the "Processing routines" under "Output types"?

Best Regards,

Charlie.

0 Kudos

Hi Charlie,

I think we are missing each other on this one. Under processing routines, you need a name for a form and a name for the form. I do have the name for the form and not the name for the program. That is what I want to know.

regards

Wonder

0 Kudos

Hi Charlie,

I think we are missing each other on this one. Under processing routines, you need a name for the form and a name for the program. I do have the name for the form and not the name for the program. That is what I want to know.

Regards

Wonder

0 Kudos

Hi Wonder,

     Again, you are to assign the corresponding program name to your form. Upon checking on our system. The form that you have given is not assigned to any program. But if you want, you can try putting your form to an existing program to check if its working.

Best Regards,

Charlie

0 Kudos

Hi Charlie,

The corresponding program name is what I am looking for.

Regards

Wonder

0 Kudos

Hi Wonder,

     In that case you have to check it under TCODE "SE80", use package "FKKC" and from there, go to programs and look for "FI_CA_PAYMENT_RECEIPT_LIB" then try to look for the corresponding includes.

Thanks and Best Regards,

Charlie

0 Kudos

Hi Wonder,

     Upon checking, I think there is really no corresponding default program paired with this form, whether to check if table TNAPR will be updated once using TCODE NACE, you might wanna try it. Since the form name itself says its a sample,by that I think it means you can use it as a sample in running a program through configuring it first through TCODE NACE, or you might wanna create a driver program and use it.

Hope this will help.

Thanks and Best Regards,

Charlie

0 Kudos

It's not meant to be used under NACE... not at all, I believe. I find the multitude of technical implemetations SAP has created for the same basic functionality - outputing something in "R/3" - quite maddening. Always like a blind man in a dark room, looking for a black cat that probably ain't even there

cheers

Janis

0 Kudos

Oh well, that's a lesson for me then. . I was just wondering cause when I was searching under table TNAPR I saw the form that was being mentioned, same as those other forms that can be found under NACE. I don't know. Thought that it was quite logical thinking that way. I might try the procedure then, for me to really know if its working or not. Will give you an update too! thanks!

Cheers,

Charlie

Private_Member_7726
Active Contributor
0 Kudos

Hi,

Many if not all FI-CA Forms are implemented using SAP Print Workbench (transaction EFRM). So another generated function module (that of the print workbench Application Form) becomes "print program".

The print workbench application form for this sample Smartform is also named FI_CA_PAYMENT_RECEIPT_SAMPL_SF.

cheers

Jānis

0 Kudos

Hi Jānis,

Thanks for your response. I cannot find the print workbench application form with the same name on EFRM.

0 Kudos

Hi,

In that case, in the client you are working, create a reference to this Application Form from Client 000 (by defaulf SAP sample PWB Forms are delivered to client 000 only, I believe). EFRM > Utilities > Create Link to Other Client: the following popup should appear; enter client 000 and form name and confirm:

I'm not a specialist in NAST/NAPR thing, but I believe you'd need to write the "print program" (the "Application" in PWB terminology) to call the Application Form yourself in order to integrate with NAST (FI-CA does not use NAST output at all, I believe). Refer to Calling Form Printing in ABAP Programs on how to call PWB Form. This particular form expects the Payment Document Number (OPBEL) passed via XT_RANGES-LOW of the FM EFG_PRINT.

If you have not worked with PWB Forms before, you should really invest time to go through the documentation.

cheers

Janis

0 Kudos

And another thing... Since you are asking a very narrow technical question (and one where the terminology used -- "print program" -- does not make any sense in a "normal"/standard FI-CA context) , it's difficult to guess what is it you actually need and how to help you along...

But, just in case, if you have to accomplish something within the scope of standard FI-CA processes, the way you assign the form for printing "Receipts for Mixed Payments" (which is what FI_CA_PAYMENT_RECEIPT_SAMPL_SF is a sample Form for), is to go to SPRO here:

where under Correspondence Type 0043 'Receipt for Mixed Payments' you should see the form FI_CA_PAYMENT_RECEIPT_SAMPL_SF assigned to it. We don't use this correspondence type so I don't know 100%, but that alone should be enough to use the form in standard FI-CA processes. No NAST, no additional "print programms", nothing else - FI-CA standard Transactions/Programs are the "Applications", which know how to use the assigned "Application form" where appropriate.

If you are outside the SAP standard scope for FI-CA correspondence/Application Forms usage (such as trying to integrate them under NAST),  then of course it's a different matter. But integrating FICA forms with NAST would IMO be senseless, because cross application component Correspondence itself is a "better NAST" (or at least newer one)...

Hope any of this will be helpful to you...

cheers

Janis