Cash book printout - forms & function module
Hi SAP Gurus,
Please provide me for cash book the function modules involved and standard sap forms for printout in the following-
1. cash receipt tab
2. cash payment tab
3. check receipt
4. check issued
I want to attach my own form for this functions.
THANKS
Hi....
go to FBCJ transaction and check for output type. then got to NACE and find out what are the forms assigned or go to NAST table find entries based on output type. there u can find form and program name.
Regards,
KP.
Similar Messages
-
Adobe Forms function module - downloading the xstring output in PDF file
Hi Guys,
I'm using Adobe forms and fetching its output in an XSTRING PDF format. How can I download this XSTRING output to a PDF file and store on the local file system?
I'm using the following approach to getting a PDF output:
ls_outputparams-getpdf = 'X'.
CALL FUNCTION 'FP_JOB_OPEN'
CHANGING
ie_outputparams = ls_outputparams.
* Get the name of the generated function module
CALL FUNCTION 'FP_FUNCTION_MODULE_NAME'
EXPORTING
i_name = 'ZADOBEFORM'
IMPORTING
e_funcname = lv_fmname.
IF sy-subrc <> 0.
ELSE.
* Call the Adobe Form function module
CALL FUNCTION lv_fmname
EXPORTING
/1bcdwb/docparams = ls_docparams
IMPORTING
/1bcdwb/formoutput = ls_form_output
EXCEPTIONS
usage_error = 1
system_error = 2
internal_error = 3.
IF sy-subrc <> 0.
ENDIF.
ENDIF.
* Close the spool job
CALL FUNCTION 'FP_JOB_CLOSE'.
Now, the variable LS_FORM_OUTPUT-PDF contains the PDF output in XSTRING. My question is how can I download this as a PDF file to my local machine.
Kind Regards,
Shailesh.hi guys,
im using all FM to download my PDF adobe but in this part :
ls_spfli-carrid = 'AA'.
ls_spfli-connid = '0017'.
APPEND ls_spfli TO it_spfli.
flag = 'X'.
is_address_type = '1'.
is_address_number = '22515'.
is_person_number = '22517'.
is_country = 'IN'.
*&--- Call the generated function module
CALL FUNCTION '/1BCDWB/SM00000200'
EXPORTING
* /1BCDWB/DOCPARAMS =
it_spfli = it_spfli
flag = flag
is_address_type = is_address_type
is_address_number = is_address_number
is_person_number = is_person_number
is_country = is_country
IMPORTING
/1bcdwb/formoutput = fp_formoutput
EXCEPTIONS
usage_error = 1
system_error = 2
internal_error = 3
OTHERS = 4
I have usage_error knowing that the execution of the function module in SE37 pass successfuly and also the execution of the forms .
in your opinion what can be the problem?
Kind Regards, -
Error while determining the form function module
Hi everyone,
We are experiencing problems while displaying one adobe form in ESS. Its the Travel Expense form (PTRV_EXPENSE_FORM). When pressing the button to Display/Print the form we get an error message: "Error while determining the form function module", and no form I shown. The ADS server is configured correctly and there are other forms that are actually working, for example the Travel Request form. We are running WAS 7.0 with SP12.
Anyone has an idea what can cause the problem? Any help is greatly appreciated.
Thanks in advance!
Regards,
SophieViktor,
Thank you for your answer, it solved our problem!
Regards,
Sophie -
Travel Display Form: Error while determining the form function module
Hi,
In Travel Reqeust (ECC6/ESS) when i click the Display Form after raising the Travel Request it shows the error
"Error while determining the form function module"
Can anyone have idea on this?
Regards,
BoobalanHi,
This error was due to Not supported platforms of ADS (Adobe Document services)
It was not supported on itanium64 bit processors.
Please check where the ADS is supported in service.sap.com/pam
You can use the ADS in the Non-Supported Server by linking it to Supported Platform Server using the SM59 link. This will make the ADS files to work.
Please refer the ADS Config Doc for details.
Hope you also solve this problem.
Regards,
Boobalan -
What is control form function module.
hi
what is control form function module.Hi Chaitanya,
The function module CONTROL_FORM can be used to pass the control
commands to FORM THROUGH ABAP/4 PROGRAM.
<b>Function Call</b>
CALL FUNCTION 'CONTROL_FORM'
EXPORTING COMMAND = ?...
EXCEPTIONS UNOPENED =
UNSTARTED =
<b>Export parameters:</b>
COMMAND
Enter the SAPscript statement you want to execute in ITF format, but without the statement paragraph attribute '/:'.
<b>Exceptions:</b>
UNOPENED
The current form function could not be executed, since the form output was no yet initialized using OPEN_FORM.
UNSTARTED
No form was opened yet.
Possible reasons:
>The form processing was started using OPEN_FORM without specifying a form name, but no form was opened yet using START_FORM.
>The last used form was closed using END_FORM, but no new form was opened using START_FORM.
>The last filled page of the current form has no subsequent page. In this case, the system automatically terminates form printing after this page. You need no explicit END_FORM call.
>In the current form, no page contains a main window, but a text element shall be output in the main window.
Regards,
Rajesh K Soman
<b>Please rewared points if found helpful.</b> -
I have a smart form and executing it with standard tcode but I couldnt see the output. How could i view the generated function module and where to assign this. Help needed immediately.
JanelleIn your print program first call the following FM. Pass the name of your smartform. It will return the generated FM name.
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
FORMNAME = V_FORM_NAME
IMPORTING
FM_NAME = V_FM_NAME
EXCEPTIONS
NO_FORM = 1
NO_FUNCTION_MODULE = 2
OTHERS = 3.
Now call the returned FM name.
CALL FUNCTION V_FM_NAME -
hi all,
what is the function module to pass the print partamets in smartforms.Hi
the function module is SSF_FUNCTION_MODULE_NAME.
here is sample code....
in this vname is the function module which is generated when we execute the smartform.....it is declared as ...
vname type rs38l_fnam.
in the ssf_function_module_name...in exporting we need to pass the values which we want to pass ,from print program to form.
STRUCTURE DECLARATION
data : wa_lfa1 type z50875_lfa1,
wa_ekko type z50875_ekko,
wa_ekpo type z50875_ekpo,
it_ekpo type z50875it_ekpo,
vname type rs38l_fnam.
SELECTION-SCREEN
selection-screen begin of block b1 with frame title text-000.
parameter : p_no type ekko-ebeln obligatory.
selection-screen end of block b1.
at selection-screen on p_no.
perform validate.
START-OF-SELECTION
start-of-selection.
perform get_vendordata.
perform get_itemdata.
call function 'SSF_FUNCTION_MODULE_NAME'
exporting
formname = 'ZMM_SMARTFORMS'
importing
fm_name = vname
exceptions
no_form = 1
no_function_module = 2
others = 3.
if sy-subrc <> 0.
message id sy-msgid type sy-msgty number sy-msgno
with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
endif.
call function vname
exporting
wa_lfa1 = wa_lfa1
wa_ekko = wa_ekko
wa_ekpo = wa_ekpo
tables
it_ekpo = it_ekpo
exceptions
formatting_error = 1
internal_error = 2
send_error = 3
user_canceled = 4
others = 5.
if sy-subrc <> 0.
message id sy-msgid type sy-msgty number sy-msgno
with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
endif.
*& Form GET_DATA
form get_data .
select single ebeln lifnr
from ekko
into wa_ekko
where ebeln = p_no.
endform. " GET_DATA
*& Form GET_VENDORDATA
form get_vendordata .
select single lifnr name1 land1 ort01 regio
from lfa1
into wa_lfa1
where lifnr = wa_ekko-lifnr.
endform. " GET_VENDORDATA
*& Form GET_ITEMDATA
form get_itemdata .
select ebelp ematn aedat mtart netwr
from ekpo
into table it_ekpo
where ebeln = wa_ekko-ebeln.
endform. " GET_ITEMDATA
*& Form validate
form validate .
perform get_data.
if sy-subrc ne 0.
message 'PURCHASE DOCUMENT DOES NOT EXISTS' type 'E'.
exit.
endif.
endform. " validate -
hi ,
The code in program lines is stored in which part of the generated function module and belongs to which include.
Thank you.Hi ,
Try to locate the any variable u have written in the program line in se37 .
Regards -
Call Pop-up screen with I/O fields form function module.
Hello experts,
I have a Zfunction module with input paramteres i_matnr, i_posnr and i_kwmeng.
My requirement is to call a pop-up screen with following fields.
Material - Inputbox for material (Read Only) " v_matnr
Item - Inputbox for Item (Read Only) " v_posnr
Quantity - Inputbox for Qty (Read Only) " v_kwmwng
Price - Inputbox for Qty (Change only) " v_price
Submit button.
I created function ZSD_MAT_DATA.
Added statement CALL SCREEN 0005
In PBO_0005, (include Prog)
v_matnr = i_matnr
v_posnr = i_posnr
v_kwmeng = i_kwmeng
1. But it gives me error for not declaration i_matnr. What I am missing here?
2. Is there anything to make window as pop-up with some specific size?
Regards,
RHHi,
You can use the stanadard FM K_KKB_POPUP_RADIO3
else like same you can craete a new function accordind to your requirement.
Hope it helps you.
Reagrds
Arbind -
Error "Job already started" when calling a adobe form in Z function module
Hi All,
I have a error when calling a adobe form in a custom function module.
I am using FP_FUNCTION_MODULE_NAME to get the adobe form function module and then i am using FP_JOB_OPEN function module to control the printing parameters such as no print preview or no dialog ..etc.. I dont have any exceptions during the call of FP_JOB_OPEN function module ..
Later I am calling my function module which was generated for the adobe form and i am getting the error called " JOB ALREADY STARTED".
I tried executing the same function module in se37 and the PDF form output was generated, and also by commenting FP_JOB_OPEN function module the PDF form output was generated.
But i need the FP_JOB_OPEN function module to control the output based on the output type which triggers the form output such as the medium from nast record which says print or email or fax.. etc
Please let me know how to handling this error.Just as a followup note. If you are testing a function module from SE37 and the test button you will get a value in SY-CPROG. You must override this value for everything to work.
If you override the value of SY-CPROG with the main program that will be calling the function module you have no problem.
John W. -
PDF-based forms for cash-book documentation
Dear colleagues,
Can you please help us with one guestion:
Are there any ready PDF-based forms for cash-book documentation (forms KO-3 and KO-4) in SAP?Hello,
I am facing the same problem, working with ERP 60
Did you get a response about KO-3 and KO-4 pdf-based forms for cash-book documentation?
Best Regards,
Ernesto. -
Initialization of data in function module (module PP)
I developed a transaction to maintain production orders (similar to transaction CO02).
I use the function module CMOC_COMP_READ to read the component data into a resbd-structure (this works fine).
My transaction creates a purchase order to one component and then I want to read the actual component data again - it should show that the component has now a purchase order (field RESBD-FLG_PURS). But the field is still empty.
Intresting effect: When I start the transaction in another screen with the same production order SAP shows the updated value. This means the purchase order is really booked and the function module finds this data.
So I am looing for a way to clear all data before using CMOC_COMP_READ. I did not found any helpful initialising FM.
Thanks for your help
Brigittego to se37 & give d fm name VC_I_GET_CONFIGURATION_IBASE
display
note: from EQUI table take 'CUOBJ' value EX '9825'
DISPLAY THE FM GIVE UR CUOBJ NO IN INSTANCE value textbox
in the end including zero 9825 press execute u can see in the bottom table
CONFIGURATION RESULT 53entries or whatever double click on that
unow u can see the all field name .
I HAVE DONE LIKE THIS IN SAMRT FORMS FOR PS
FOR that i written this code
*& FOR POLE , KW , CONST FIELDS
*break : abapdev.
SELECT SINGLE * FROM vbap INTO wa_vbap
WHERE vbeln = wa_vbrp-aubel AND posnr = wa_vbrp-posnr .
IF sy-subrc = 0.
CALL FUNCTION 'VC_I_GET_CONFIGURATION_IBASE'
EXPORTING
instance = wa_vbap-cuobj
BUSINESS_OBJECT =
language = sy-langu
IV_INVALID_POSSIBLE = ' '
IV_NEUTRAL = ' '
TABLES
configuration = gt_data
ET_CONF_WITH_AUTHOR =
EXCEPTIONS
instance_not_found = 1
OTHERS = 2.
ENDIF. .
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
*& FOR POLARITY FRAMESIZE & KW
LOOP AT gt_data INTO wa_data.
IF wa_data-atnam = 'KW1'.
lv_kw1 = wa_data-atwrt.
ENDIF.
if wa_data-atnam = 'KW2'.
lv_kw2 = wa_data-atwrt.
ENDIF.
IF wa_data-atnam = 'POLARITY'.
lv_polarity = wa_data-atwrt.
ENDIF.
IF wa_data-atnam = 'FRAMESIZE'.
lv_framesize = wa_data-atwrt.
ENDIF.
ENDLOOP.
*& FOR MACHINE NUMBER
*break : abapdev.
SELECT SINGLE * FROM ser01 INTO wa_ser01
WHERE lief_nr = wa_likp-vbeln.
IF sy-subrc = 0.
SELECT SINGLE * FROM objk INTO wa_objk
WHERE obknr = wa_ser01-obknr.
ENDIF.
regrads
aniruddh singh -
Functional Module or BAPI for changing Material Type
Hi,
There is a Transaction MMAM for changing the Material Type in SAP. Can anyone help me in figuring out a Functional Module which can change the Material Type like how MMAM transaction does. Is anyone aware of any FM or BAPI that can take import parameters as Material Number and New Material Type and change the material type to the New one.
I tried using the BDC but got some performance issues with it.
Thanks
VinayCould you please put some light on which part of the transaction MMAM is responsible in changing the Material type. I can understand that there may exist may checks in the Tx MMAM but I would like to know where is the material Type getting changed in the Tx MMAM. On going through the Tx MMAM I have across many forms and function modules but its difficult to track the form/Function Module responsible for changing the Material Type. Please help me in this.
-
Function Module: to get Cash Journal Entries and Balances
Dear Guru's,
We need to develop a function module to display cash journal opening balance line item entries and closing balance of specific period.
we have found document entries through table TCJ_DOCUMENTS or TCJ_POSITIONS now require help to generate opening and closing balances.
Please help for the solution.
AARHi,
check FM FCJ_GET_DATA_FOR_SCREEN. Next time you can try to figure out by yourself. The program for transaction FBCJ is not that complicated and you can easily find this FM used there.
Cheers -
Is it possible to call a adobe form inside a function module?
Hi gurus,
i am trying to generate the pdf data source inside a custom function module,
the function module will call the FUNCTION 'FP_JOB_OPEN' , then call the function module of the pdf interface. then get the pdf data back and return.
but at run time i got the error message:
FPRUNX101, the job already started.
then the program stopped.
i checked the service market place, there is a note for that:858325 Message "Job already started" when you display PDF forms .
according to the notes,it seems that it's only possible to call the pdf generated function module in a program.
my question is , is there a way to call that in a funciton module?
best regards.
Jun
the note states that:
Reason and Prerequisites
At runtime, a PDF-based form is called using a generated function module. If you use the new interface, it is necessary to set the function modules FP_JOB_OPEN and FP_JOB_CLOSE as control structures with one or several generated function modules. In order for the single test from Transaction SFP to work simultaneously, however, the system checks for the test environment of Transaction SE37 (in which the test ultimately runs) in the single test. In this case, the function modules FP_JOB_OPEN or FP_JOB_CLOSE are called automatically.
If you then test a function module that calls a PDF based form and therefore calls the function module FP_JOB_OPEN itself, this leads to the error message mentioned above.
Solution
The test should be carried out using a program that in turn calls the function module to be tested.sorry, i found out the reason.
the fm can not test direct in se37, it should be wrapped by a program.
br.
zj
Maybe you are looking for
-
Why does it die so fast
-
Automatic payment config and run problem
hi friends, Now the payments are generating on one bank account 123456, now client wants to post if the vendor payment morethan $1000 send through another bank account 987654 both are currency USD only and in bank determination(fbzp) the config is ba
-
Web pages won't load but airport shows strong connection!
help! I have a wireless network set up with a wireless router transmitter (not apple). My wife's macbook works fine, but my son's imac has great difficulty loading pages even thought the airport icon at the top of the monitor says the signal is stron
-
What's a good gaming laptop?
College student here, in dire need of a new laptop. I dropped my old one and the screen cracked. Plus it's rather old and slowly starting to die on me. So with that said, I need a laptop for school, but I also need it to be able to run WoW and LoL.
-
Can I prevent the headphone to take over the sound output?
When I plug in my Apple EarPods in iMac all alternatives of sound in- and output are overruled. I'm using skype, so I'd like my EarPods to be plugged in all the time, but if I do, the incomming call sound - as well as any other sound - is only audibl