BADI to call SMARTFORM
This is related to previous post regarding changing the print data that appears on Smartforms.
Christophe provided some very helpful responses which have gotten me to this point.
I have copied smartform bbp_sc and made the required changes. I also copied BADI bbp_change_sf_sc.
Can someone please tell me the code that needs to be added in the method to call my new custom form zbbp_sc.
I have tried the following which did not work:
method IF_EX_BBP_CHANGE_SF_SC~CHANGE_SMARTFORM.
TDSFNAME = 'ZBBP_SC'.
endmethod.
Thank you,
jolee
hi,
Try :
method IF_EX_BBP_CHANGE_SF_SC~CHANGE_SMARTFORM.
SMARTFORM = 'ZBBP_SC'.
endmethod.
You have to use parameter in your implementation and not the associate type.
Bertrand
Similar Messages
-
Bad Pool Caller - Blue Screen of Death
Windows Blue Screens of Death (BSoDs) happen whenever your computer encounters something it doesn’t know how to process, so it shuts itself down to prevent any damage. Sometimes BSoDs happen once and you don’t see them again when you restart — however, this isnt always the case and a BSoD may show up repeatedly.
In this article we will look at issues causing a bad_pool_caller BSoD. What has happened is that a thread in the laptop's processor has made a bad pool request. This means that it’s asking to use resources that are unavailable, nonexistent, or in use by another thread. It could also mean that the pool header is corrupted — regardless of the particular error, it, like most BSoDs, is caused by driver issues.
Drivers are what makes your computer work. Every device connected to your computer, and nearly every component inside it has a software driver that determines how Windows interacts with your device. When driver issues are encountered- which is fairly common on new operating systems like Windows 8 — it can cause a lot of problems, but, fortunately, sometimes there is an easy fix.
Recently Connected and Installed Device
Try to determine which device was last connected or installed before an error appeared. Often this can be a new peripheral device. Go to Device Manager (in the Control Panel) and find the driver for the recently connected peripheral device driver. From there, you can get Windows to search for updates, you can disable it, or you can uninstall it entirely. You can also disconnect the problem device and perform a system restore to before the device was connected and supporting software was installed.
Recently Installed Program
If your drivers aren’t the problem, a recently installed program may be the issue. If you can determine what program you installed that started this, uninstall it or perform a system restore to before the program was installed, and, after a restart, you should be good to go.
System Restore
Windows 7 and earlier
Windows 8
Any further issues that cannot be resolved may require your computer to be repaired.Every time we try to connect his Nano it causes the PC to crash with this Bad Pool Caller message.
is the BADPOOLCALLER citing a specific file, Laurita? if so, what is it called? (exact spelling please.)
if it's not citing a specific file, let's try getting a minidump to the Apple engineers for a look.
To set up your machine to capture a minidump, right click on "My Computer", select "Properties", select the "Advanced" tab, select the "Startup and Recovery" Settings button, select "small memory dump" from the popup. When it crashes, look for the MiniDump file. It's usually in the folder "C:\WINDOWS\Minidump" and is called something like Mini<number>-<number>.dmp.
Find that file and send it as an attachment to this email address.
in the email to Roy, be sure to include the following information:
- A link to the thread on Apple Discussions where the issue is being discussed
- The username you are using in the thread
- The version of iTunes you are using or trying to use
- the version of Windows you are using (mention service packs)
- A concise description of the issue you are seeing
- The exact text of the error message you are seeing -
How do we call smartforms in abap program or web services
how do we call smartforms in abap program or web services
How many types of smartforms are there?
points will be rewardedHi
See this sample program
Using the fun module smartform is called from the program
Calling SMARTFORMS from your ABAP program
REPORT ZSMARTFORM.
Calling SMARTFORMS from your ABAP program.
Collecting all the table data in your program, and pass once to SMARTFORMS
SMARTFORMS
Declare your table type in :-
Global Settings -> Form Interface
Global Definintions -> Global Data
Main Window -> Table -> DATA
http://sapr3.tripod.com
TABLES: MKPF.
DATA: FM_NAME TYPE RS38L_FNAM.
DATA: BEGIN OF INT_MKPF OCCURS 0.
INCLUDE STRUCTURE MKPF.
DATA: END OF INT_MKPF.
SELECT-OPTIONS S_MBLNR FOR MKPF-MBLNR MEMORY ID 001.
SELECT * FROM MKPF WHERE MBLNR IN S_MBLNR.
MOVE-CORRESPONDING MKPF TO INT_MKPF.
APPEND INT_MKPF.
ENDSELECT.
At the end of your program.
Passing data to SMARTFORMS
<b>call function 'SSF_FUNCTION_MODULE_NAME'
exporting
formname = 'ZSMARTFORM'</b>
VARIANT = ' '
DIRECT_CALL = ' '
IMPORTING
FM_NAME = FM_NAME
EXCEPTIONS
NO_FORM = 1
NO_FUNCTION_MODULE = 2
OTHERS = 3.
if sy-subrc <> 0.
WRITE: / 'ERROR 1'.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
endif.
call function <b>FM_NAME</b>
EXPORTING
ARCHIVE_INDEX =
ARCHIVE_INDEX_TAB =
ARCHIVE_PARAMETERS =
CONTROL_PARAMETERS =
MAIL_APPL_OBJ =
MAIL_RECIPIENT =
MAIL_SENDER =
OUTPUT_OPTIONS =
USER_SETTINGS = 'X'
IMPORTING
DOCUMENT_OUTPUT_INFO =
JOB_OUTPUT_INFO =
JOB_OUTPUT_OPTIONS =
TABLES
GS_MKPF = INT_MKPF
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.
<b>Reward points for useful Answers</b>
Regards
Anji -
How to call smartform FM after using SSF_FUNCTION_MODULE_NAME?
Hi Experts,
How to call smartform FM after using SSF_FUNCTION_MODULE_NAME?
I mean, in driver program i called SSF_FUNCTION_MODULE_NAME to get the related FM for my smart form. after that How do I call it(smartform fm) . I tried to call by pressing PATTERN button in Report. but it is showing FM is not exist error.
Call function SSF_FUNCTION_MODULE_NAME
Export
formname = 'zsmartform'
import
fm_name = function_name.
function_name is stored the corresponding smartform fm. then How do i call it to process my smartform?
thanks in advance.hi,
Chk this sample.
DATA: p_output_options TYPE ssfcompop, "occurs 0 with header line
p_control_parameters TYPE ssfctrlop. "occurs 0 with header line
p_output_options-TDCOPIES = 3. "number of copies.
p_output_options-tddest = 'LP01'. "def
p_control_parameters-no_dialog = 'X'. "no dilog box
p_control_parameters-preview = 'X'. "no preview
DATA : v_form_name TYPE rs38l_fnam.
*---- Function to get the function module name of the ----
*---- specified Smart form. ----
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
formname = 'GIVE YOUR SMART FORM NAME'
* VARIANT = ' '
* DIRECT_CALL = ' '
IMPORTING
fm_name = v_form_name
EXCEPTIONS
no_form = 1
no_function_module = 2
OTHERS = 3 .
*---- Function Module to call the Smart Form ----
*step 1 - go to ur smart form
*step2 - take environment
*step3-take function module name
*copy that unique number.
*step4 -come back to ur driver program.
*step5 - place ur cursur here. take patter,.give that unique number.
*at that time u will get the below code.
*step6 - rename that unique number with 'v_form_name' in the code generated by pattern.
CALL FUNCTION v_form_name
EXPORTING
* ARCHIVE_INDEX =
* ARCHIVE_PARAMETERS =
control_parameters = p_control_parameters
* MAIL_APPL_OBJ =
* MAIL_RECIPIENT =
* MAIL_SENDER =
output_options = p_output_options
user_settings = ' '
* ARCHIVE_INDEX_TAB =
* IMPORTING
* DOCUMENT_OUTPUT_INFO =
* JOB_OUTPUT_INFO =
* JOB_OUTPUT_OPTIONS =
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.
for any clarifiaction pls revert.
regards,
Reshma -
How to call smartform in me54n
Hai All,
Iam developing a smartform for PR print with ztcode,the user asked me that,he dont want seperate tcode,in me54n tcode itself he want
print.I have tried in the enhancement spot but it is not firing.
Regards,
Siva jyothi.Hi ,
The print button creates a spool number through which you can get ALV output of the ITEM details but cannot call smartform from that.
PR is just an internal document.There is no other way to do it(As far as i know).
You now have only two options to go for:
1) Create a subscreen with a pushbutton , and then call the driver program to print the smartform.
2) A Z transaction to print the PR , which you have already done.
Let me know if you find any other way to do it.
Br.
Giri -
Hi all,
i want to print the data that i have in Portal (WD) in a PDF via Smartforms,
can somebody tell me how can i do this?
Best Regardsget the Smartform function module
call smartform
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
FORMNAME = '<Smartform name>'
IMPORTING
FM_NAME = LV_FUNC_MOD_NAME
EXCEPTIONS
NO_FORM = 1
NO_FUNCTION_MODULE = 2
OTHERS = 3.
IF SY-SUBRC <> 0 .
RETURN.
ENDIF.
call LV_FUNC_MOD_NAME with Control parameter NO_DIALOG,GET_OTF marking X
*convert the OTF to PDF using
CALL FUNCTION 'CONVERT_OTF'
EXPORTING
FORMAT = 'PDF'
MAX_LINEWIDTH = 132
IMPORTING
BIN_FILESIZE = LV_LENGTH
BIN_FILE = LV_XSTRING
TABLES
OTF = LT_RETURN-OTFDATA
LINES = LT_TLINE
EXCEPTIONS
ERR_MAX_LINEWIDTH = 1
ERR_FORMAT = 2
ERR_CONV_NOT_POSSIBLE = 3
ERR_BAD_OTF = 4
OTHERS = 5.
IF SY-SUBRC <> 0.
RETURN.
ENDIF.
now use use runtime service method to push the PDF to browser client
CL_WD_RUNTIME_SERVICES=>ATTACH_FILE_TO_RESPONSE -
Calling Smartforms from Module pool: Most Urgent
Hi, Exeperts
how can I call smartforms from module pool.
I have done like below.
First Created a push button on screen and used
these code in user command through PAI
FORM CALL_SMARTFORMS .
DATA: V_FORM_NAME TYPE RS38L_FNAM.
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
FORMNAME = 'ZSMART'
IMPORTING
FM_NAME = V_FORM_NAME
EXCEPTIONS
NO_FORM = 1
NO_FUNCTION_MODULE = 2
OTHERS = 3.
ENDFORM. " CALL_SMARTFORMS
now I am getting form name in v_form_name, but it is not executing.
Please help me out.
Regards
Rajiv singh.Well, as it's most urgent....
One you have a value in V_FORM_NAME you need to call this function module, passing the fields and strucures that make up the interface to your form.
Eg.
DATA: DEVICE TYPE SSFCTRLOP .
DEVICE-DEVICE = 'PRINTER'.
DEVICE-NO_DIALOG = 'X'.
CALL FUNCTION V_FORM_NAME
EXPORTING
CONTROL_PARAMETERS = device
USER_SETTINGS = 'X'
EXCEPTIONS
FORMATTING_ERROR = 1
INTERNAL_ERROR = 2
SEND_ERROR = 3
USER_CANCELED = 4
OTHERS = 5.
Regards,
Nick -
Problem while calling smartform in webdynpro
Hi Experts,
I am calling a smartform in webdynpro abap. It was working fine in development server. I have ported the same request to Quality Server, there it was not working.it is giving sy-subrc = 1 and it is displaying a blank screen
I m following the following steps for calling smartform in webdynrpo.
I am calling the smartform by
call function 'SSF_FUNCTION_MODULE_NAME'
exporting
formname = 'ZSMARTFORM_NAME'
importing
fm_name = fname
exceptions
no_form = 1
no_function_module = 2
others = 3
if sy-subrc 0.
Error MESSAGE
endif.
call function fname
exporting
control_parameters = lv_control_parameters
output_options = lv_output_options
user_settings = space
pernr = stru_input1-zpernr
reinr = stru_input1-zreinr
pdvrs = stru_input1-zpdvrs
importing
job_output_info = lv_ssf_output
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.
But it is not passing otfdata and it is returning 1 in sy-subrc.
Please help me to solve this issue.I m not using any image.
I have checked through debug and the function module is not transfering any file to OTF table.
Please suggest me..
Edited by: zakirriyaz on Nov 4, 2011 9:47 AM -
RoboHelp for Word Version 8-Run-time error 49-Bad DLL calling convention
I just installed the trial version of RH8. I have RH5 installed. I also have Word97 installed. When I start RH8, the RH Explorer pane opens, but when it tries to open Word, the following error message appears: "Microsoft Visual Basic - Run-time error '49'. Bad DLL calling convention." Any ideas on what I can do to fix this problem?
See Snippets on my site.
See www.grainge.org for RoboHelp and Authoring tips
Follow me @petergrainge -
General BADi question:Call BADi in background job/batch input. Possible?
Hi out there,
i'm using thoe following BADi: /SAPSLL/CTRL_SD0C_R3 (Global Trade Service).
But also, this question is a general question.
If we are calling on screen the transaction VF01, the BADi is called correctly.
But unfortunately it seemes that the BADi is NOT called (im not really sure, cause i can't debug the background task) when we are calling a batch input sequence wth f.e. form bdc_transaction VF01 nothing happens.
Maybe BADi cannot be called in a background task? If it's possible, how could it be monitored. Thare isw no spool entry or anything like that!
Any answer can help.
Thank you in advance!
Regards,
Timo
Edited by: Timo Ehl on Apr 14, 2009 7:27 PMHi,
generally BADIs are called in background mode. You can use the following trick to debug your BADI. You just need to create an infinite loop in your BADI implementation. Something like this.
DATA: l_a TYPE c.
WHILE l_a IS INITIAL.
ENDWHILE.
Obviously when your BADI is called in background mode then program will get into infinite loop. You can easily connect and debug running programs from transaction SM50. You need to select your background process and go to Program/Session -> Program -> Debugging. You will jump directly into your BADI methos with infinite loop. Then you will just set value to l_a and you will start debugging your BADI. If you can not find any process then your BADI is not called in background mode.
Cheers -
Is there a BADI to call custom defined fields in Project Systems (PS)
Hi,
Is there a BADI to call custom defined fields in Project Systems (PS)
The business process is as under:
SRM MDM product catalog is called from PS applcation in ECC using transaction code CJ20N.
Standard fields like description, qty, price etc are displayed and transfered to the PS application.
The requirement is in addition to above mentioned fields, need to display
custom defined (CUST_FIELD1 to CUST_FIELD5) fields and subsequently to be transfered to the PS application.
Pls provide help or inputs.
Thanks,Hi,
There is customizing in the PS side. PS -> Material-? *(OCI) -> Convert HTML to SAP Fields
Regards,
Masa -
Can the same BADI be called in ESS and Backend ?
Can the same BADI be called in ESS and Backend ? For Eg. HR_IN_LOANS_VALIDATE
What verson of iPhoto did your MacBook Pro come with? If it was iPnoto 8 (09) or earlier you will have to purchase iPhoto 9 (11) from the App Store. If your MBP came with iPhoto 9 preinstalled you should be able to update to 9.4.1 without charge.
However, as Niel pinted out the iPad iPhoto is a different animal (pun intended) entirely and will have to be purchased.
OT -
Where is BADI CRMXIF_PARTNER_MAP called during BP replication via XIF?
Hi,
I want to debug my implementation of BADI CRMXIF_PARTNER_MAP which is used in BP replication via XIF adapter. After I set a breakpointer in my program, I tried in Tcode BP to save an updated BP, it didn't goto debugging mode. I can ensure that I have done correct configuration for XIF adapter because I found the generated IDoc by using Tcode BD87. And I also try to send generated IDoc out, it also not goto to debugging mode.
So where is this BADI called? In which function or class?
Thanks a lot!
Edited by: lonny Zheng on Jun 10, 2011 1:49 PMHi konanki63,
I tried to set external breakpoint in coding, but it didn't work. I tried to use where-used list to find, I can only find that this BADI is called in FM CRMXIF_PARTNER_MAPSEND. But I can't find any other program call that FM again.
Could you give me more tips?
Thanks a lot! -
Calling Smartform in WD application?
Hi,
Is it possible to call Smartform in WD application?
ThanksYes it is. Check out the thread [Displaying Smartforms in Webdynpro ABAP |Re: Displaying Smartforms in Webdynpro ABAP; and check the code as Vikrant Trivedi suggested.
Also check the SAP document [How to Display a Smartform as PDF document in Web Dynpro for ABAP|http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/f0de1eb8-0b98-2910-7996-8a3c2fcf6785].
Hope it helps. -
VB Error - Runtime error '49' Bad DLL calling convention
Hi Experts,
When User is running report he is getting error VB Error - Runtime error '49' Bad DLL calling convention .
Can you please suggest how to resolve this issue?
User has already tried uninstalling SAP GUI and installing again.
Thanks & Regards
Deepak Chavan.Hi Deepak,
this doesnt appear to be an SAP error.
I did a Google search on the error & got lots of hits, including:
http://www.bigresource.com/VB-WindowFromPoint-Bad-DLL-calling-convention-run-time-error-49--G1wKaVeqwY.html
Its a Microsoft Visual Basic programming error code.
Rgds,
Colum
Maybe you are looking for
-
SQL performance question (between clause)
Hello, I'm new to SQL tuning and bumped into the following performance problem: Situation: --Table 1 CREATE TABLE GGS CHROM_ID NUMBER(2), START_POS NUMBER(10), TAG VARCHAR2(3 CHAR) CREATE INDEX GGS_IDX ON GGS (CHROM_ID, START_POS); --Table 2 CREATE T
-
Transport of portal pages from Production to Development
Hi, I need to transfer the portal pages from from the production server to development server. I did see references from Development to Production but not vice- versa. Can anybody please help me with this? What are the best practices? DEP :- SP19 and
-
One of my clients has his dpm server turned off for a long time. Now when that server is back online I cannot re-sync backup. First was database in suspect mode and I was not able to acess dpm console. Now when I fix that I cant re-sync job. I even t
-
How to specify tabbed canvas appearing?
Hi All, I've three canvases two content and one tabbed, the first content canvas contains a data block which goes to the second content canvas via pressing a button caontins GO_Block. I've drawed a tabbed canvas (using its specified tool) in that sec
-
In mail i keep getting red flagged mail that i can't trash, please help!