How to use multiple models in one Function module?
Hi,
In my FM i am using 2 models and if i dont completely exit the Function and use the same fm for another query based on another
model it is giving error saying invalid type.
if iv_type_of_search = 'A'.
start the application BT
lv_bol_core = cl_crm_bol_core=>get_instance( ).
lv_bol_core->start_up( 'BP_APPL' ).
get an instance of dynamic opporunity query
lr_query = cl_crm_bol_dquery_service=>get_instance( 'BuilHeaderAdvancedSearch' ).
Contact Search
elseif iv_type_of_search = 'C'.
start the application BT
lv_bol_core = cl_crm_bol_core=>get_instance( ).
lv_bol_core->start_up( 'BP_APPL' ).
get an instance of dynamic opporunity query
lr_query = cl_crm_bol_dquery_service=>get_instance( 'BuilContactAdvancedSearch' ).
*Opportunity Search
elseif iv_type_of_search = 'O'.
start the application BT
lv_bol_core = cl_crm_bol_core=>get_instance( ).
lv_bol_core->start_up( 'BT' ).
get an instance of dynamic opporunity query
lr_query = cl_crm_bol_dquery_service=>get_instance( 'BTQOpp' ).
endif.
Any idea how to over come this or remove the instance of the old query and model every time its run?
it looks like the object of the last run is still there and i cant find any destructor method or way and
if i exit se37 it works fine....
Hi George,
You can also set up your model (component set) with the components you need.
Check it on:
SPRO->CRM->CRM Cross-Application Components->Generic Interaction Layer/Object Layer->Basic Settings
Kind regards,
Garcia
Similar Messages
-
How to use multiple ipods on one account
I have an Ipod classic and just bought my sons two nano's how do I use these on the same account without changing my account info?
Take a look here:
How to use multiple iPods with one computer
Forum Tip: Since you're new here, you've probably not discovered the Search feature available on every Discussions page, but next time, it might save you time (and everyone else from having to answer the same question multiple times) if you search a couple of ways for a topic, both in the relevant forums, in the User Tips Library and in the Apple Knowledge Base before you post a question.
Regards. -
How to use parameters in smartform genrated function module
i executed smartform one functional module is genrated '/1BCDWB/SF00000002'
now the problem is that i want to send output of this smartform through email
now how to use ' MAIL_RECIPIENT ' and ' MAIL_SENDER ' to send smartform output through email .
please check following module which generated by smartform.
plz suggest me .
CALL FUNCTION '/1BCDWB/SF00000002'
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
ITAB_PA0001 = ITAB_PA0001
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.Hi
You can do it while passing these parameters in the CONTROL_PARAMETERS.
data: ls_CONTROL_PARAMETERS type SSFCTRLOP.
ls_CONTROL_PARAMETERS-DEVICE = 'LOCL'.
ls_CONTROL_PARAMETERS-NO_DIALOG = 'X'.
ls_CONTROL_PARAMETERS-PREVIEW = ' '.
Pass this ls_CONTROL_PARAMETERS to the importing parameter of the FM .
CALL FUNCTION LF_FM_NAME
EXPORTING
CONTROL_PARAMETERS = LS_CONTROL_PARAM
In addition to this, you might also want to set the print immediately field on the same structure to 'X'.
Generally you leave the device field empty, the user master record default printer will be used -
How to use Multiple Logos in One Smart Form?
All,
I have a client where they will have 2 logos for, e.g. "Invoicing" and want the form to decide which logo to print (based on plant code).
We are using Smartforms.
They want to use one form and based on the plant code - the form should determine which logo to print in the upper left corner of the invoice - how do you do this?
This is not like having text to print on the form in the same place - my understanding is the logo is NOT some variable you can "clear" in the program and then use the logo you wish to show up on the printout.
Does this have something to do with using multiple layouts within the same form? You define a layout for each logo and then within the Smartform logic determine which layout to print? And if that is true - does someone have sample code of how they determined which layout to use?
Thanks - and as always - points rewarded where helpfull!
ScottHi Scott,
Create two Graphics in Smartform window & place them wherver you want in the smart form.
Now in Graphics node, you can find 'Conditions' tab, under this you can give the conditions.
Hope this clue wil help you
Regards,
Sujatha -
How to use a Logical Database in Function Module.
Hi Experts,
I want to use a logical database in a Function Module to fetch data from a standard SAP table into a Internal table for certain filter conditions.
How can I get get this done????
I called LDB_PROCESS FM in my FM, but I could not figure out how to store the extract in my IT table since we cant use GET in FM.
Please provide me a sample code if possible.
Thanks in Advance,
Alex.Hi,
i had an example program like this ,in this i want to get the data using pnp logical database with 5 fields in an interface program.
data: begin of it_final occurs 0,
pernr like pa0002-pernr,
vorna like pa0002-vorna,
nachn like pa0002-nachn,
usrid like pa0105-usrid,
usrid_long like pa0105-usrid_long,
end of it_final.
get pernr.
clear : p0000,p0002,p0105.
rp-provide-from-last p0000 space p_date p_date.
if p0000-stat2 = '3'.
v_pernr = pnppernr-low.
else.
reject.
endif.
*---Get employee pernr, First name ,Last name into final table
rp-provide-from-last p0002 space p_date p_date.
if pnp-sw-found = '1'.
it_final-pernr = p0002-pernr.
it_final-vorna = p0002-vorna.
it_final-nachn = p0002-nachn.
else.
*---Error message if not infotype 0002 maintained
T_ERROR-PERNR = pnppernr-low.
CONCATENATE TEXT-EMI '0002'
INTO T_ERROR-MESSAGE SEPARATED BY SPACE.
APPEND T_ERROR.
CLEAR T_ERROR.
endif.
**--Get SYSTEM USERNAME to final table
rp-provide-from-last p0105 0001 p_date p_date.
if pnp-sw-found = '1'.
it_final-usrid = p0105-usrid.
else.
*---Error message if not SYSTEM USERNAME maintained
T_ERROR-PERNR = pnppernr-low.
CONCATENATE TEXT-003 '0105'
INTO T_ERROR-MESSAGE SEPARATED BY SPACE.
APPEND T_ERROR.
CLEAR T_ERROR.
endif.
**--Get Email ID to final table
rp-provide-from-last p0105 0010 p_date p_date.
if pnp-sw-found = '1'.
it_final-usrid_long = p0105-usrid_long.
else.
*---Error message if not Email ID maintained
T_ERROR-PERNR = pnppernr-low.
CONCATENATE TEXT-004 '0105'
INTO T_ERROR-MESSAGE SEPARATED BY SPACE.
APPEND T_ERROR.
CLEAR T_ERROR.
endif.
append it_final.
clear it_final.
reward points if useful,
venkat. -
How to use select-options in the function module of import parameter ?
Hi ...
I have created a BAPI and tested in SWO1 tcode , by giving the single value for an company code ( BUKRS ) , it executed properly .
Same thing is working after implementing in a program .
so now it is working for fetching a single company code details .
My requirement is : I want to use select-options in program as well as in function module IN IMPORT PARAMETER.
Program :
REPORT ZTEST.
TABLES : T001 , ZBAPI_STR .
TYPES : BEGIN OF TY_ITEM .
INCLUDE STRUCTURE ZBAPI_STR .
TYPES : END OF TY_ITEM .
DATA :WA_ITEM TYPE TY_ITEM ,
ITEM LIKE STANDARD TABLE OF WA_ITEM INITIAL SIZE 0 .
PARAMETER : BUKRS TYPE ZBAPI_STR-BUKRS.
call function 'ZBAPI_FMT001'
exporting
bukrs = BUKRS
IMPORTING
RETURN =
tables
itemtab = ITEM
IF ITEM IS NOT INITIAL .
LOOP AT ITEM INTO WA_ITEM .
WRITE : / WA_ITEM-BUKRS , WA_ITEM-BUTXT , WA_ITEM-ORT01 , WA_ITEM-LAND1 .
ENDLOOP.
ENDIF.
FUNCTION MODULE :
FUNCTION ZBAPI_FMT001.
""Local Interface:
*" IMPORTING
*" VALUE(BUKRS) TYPE EFG_TAB_RANGES
*" EXPORTING
*" VALUE(RETURN) TYPE BAPIRET2
*" TABLES
*" ITEMTAB STRUCTURE ZBAPI_STR
SELECT BUKRS BUTXT ORT01 LAND1 FROM T001 INTO TABLE ITEMTAB WHERE BUKRS = BUKRS .
ENDFUNCTION.
Regards
Deepa.I have given a similiar example which i did
Declare a
Table type:Z_TT_PONUM
Short text : Select options PO Number
in SE11 tcode with row type eg: Z_ST_PONUM
create a structure (this will be the row type)
Structure Z_ST_PONUM
Short text Select Options Field PO number
Compenent Compent type
SIGN BAPISIGN Inclusion/exclusion criterion SIGN for range tables
OPTION BAPIOPTION Selection operator OPTION for range tables
LOW EBELN Purchasing Document Number
HIGH EBELN Purchasing Document Number
In the function module import
give as
I_PO_NUM TYPE Z_TT_PONUM opt pass value Select options PO Number
Hope this is exactly what you want to know.
So you create a structure simliar to mine but the low an high whould be your component
then a table type and then include that in the BAPI.
Then pass your select-option value to this BAPI when you call this BAPI in the program -
How to use multiple devices on one itunes account
I have one itunes account, three iphones and one itouch. How do we use the same itunes account be not share data, pictures, contacts etc?
Connect the iOS device, select it from the left column under "devices" and just don't check those items in iTunes:
Un-check the appropriate boxes for Contacts, etc. You can set these individual preferences for each iPhone and iPod Touch. -
How to use multiple formats in one JFormattedTextField
Hi,
I am looking for a way to allow multiple formats in the same JFormattedTextField. Let's say I want to allow input like:
a) 123-AB-123
and
b) AB-12345-CD
Of course I could use an InputVerifier of my own combined with regular expressions to see if the input matches. But I like the way JFormattedTextField supports the UserInput by displaying a Placeholder String. So the User sees what the input might look like.
I'd tried to write a FormatterFactory of my own, which will return either a MaskFormatter for a) or b) but the JFormattedTextField checks out the Formatter only when gaining or loosing focus. What should happen is that it checks out the formatter after each keystroke.
Does anyone know a solution for this or how I could force the FormattedTextField to REget it's formatter?
Thanks
ThimoCheck out the following; it provides code for a regular expression formatter:
http://java.sun.com/products/jfc/tsc/articles/reftf/
Unfortunately, this does not support the 'placeholder' notion like the MaskFormatter does, if that's what you were talking about. I'm not sure how you could cobble them together, since with the MaskFormatter you don't have to type the mask literal characters, but you would need to with the regular expression.
: jay -
How to use multiple channels with one remoteObject .
hi,
I have an application which is accessed through HPPS some
times , also it can be access on server with http service.
so I want to know how to configure config files or add
runtime channels which will support either channel depending on
the server it is accessed over.
Is there any one who can help me to solve this...i need it
soon.
thank you...Hi,
Please visit the URL below for details on adding channel sets
at runtime. Add multiple channels to the channel set so that the
fall back mechanism works.
http://livedocs.adobe.com/blazeds/1/blazeds_devguide/runtimeconfig_5.html#194376
Hope this helps. -
How to use multiple senders with one account
I have not moved from Entourage to Mail because I cannot figure out how to change sender addresses while using the same SMTP server.
It is easy to do in Entourage. Is it possible in Mail?
ThanksNot sure what you mean, but associating multiple email addresses with the same mail account is described in Mail Help’s “Adding multiple email alias addresses to an account” article.
-
How to use multiple events on one project?
I want to make a show reel, this obviously involves using various events.
I'm worried if I do this the whole file system will be a mess. Surely I should be sopying any files I want to use into the new showreel folder?
How can i do this?
Or is using various events ok?
Hope someone ca recomend the best way forwardYou can edit from any event into the project. There is no need to copy the clips into a new event. When you're done you can archive the used clips into a new event.
-
How to use multiple ipods with one computer
My 2 kids have an ipod touch each. How do I create their own files so that they do not have to have eachothers choices and games on eachothers device? As well, we have 2 iphones that are connected as well.
Yo should read the manual.
Open itunes, connect device, select what you want to sync, sync, disconnect device
Connect other device, select what you want to sync, sync, disconnect device
Connect other device, select what you want to sync, sync, disconnect device
Connect other device, select what you want to sync, sync, disconnect device -
Help wanted - step by step process on how to use two ipods on one computer
I'm just in the process of getting an ipod (waiting on delivery!) and want to know how it is possible to have two ipods using the same computer but synchronizing differently. I don't want to risk losing my partners music (he'll be very upset!) and I don't want to end up with his music on my ipod. I'd appreciate it if someone could give me a step by step guide or tell me where the best place to look for the answer is. Is it possible somehow to have two different libraries on one computer? Is that how it works?
There are a couple of methods for using more than one iPod on a single computer. Have a look at the article linked below. Method one is to have two Mac or Windows user accounts which by definition would give you two completely separate libraries. Method two as Chris has already described above is to set your preferences so each iPod is updated with only certain playlists within one library. Have a look anyway and see what you think and go for whichever you feel suits your needs best: How To Use Multiple iPods with One Computer
-
Can someone tell me how to use 2 ipods on one computer
well when anyone can ill be waiting for the answer i want to know cuz since im buying the ipod video i want to see if i can use the same computer that im uploading stuff to my ipod mini
There is no limit to how many iPods can run on a single PC. Or how many PCs a single iPod can connect to. Either by Apple design or by any legal issues.
These links should help:
Natalie Beresford: Multiple iPods/iTunes Installations
How to use multiple iPods with one computer
How to share music between different accounts on a single computer -
HELLP!! NEED TO KNOW HOW TO USE TWO IPODS ON ONE COMP!ASAP
i have an ipod nano and an itunes account. Now my mom has a nano and we need to know if you can register them on the same account and how or any other tips for using two ipods on one comp!
PLEASE HELP ASAP!
ZACHHello Zach,
There are a couple of methods for using more than one iPod on a single computer. Have a look at the article linked below. Method one is to have two Mac or Windows user accounts which by definition would give you two completely separate libraries. Method two is to set your preferences so each iPod is updated with only certain playlists within one library. Have a look anyway and see what you think and go for whichever you feel suits your needs best: How To Use Multiple iPods with One Computer
Maybe you are looking for
-
Finally Closed PO need to Open
Hi, User wants open finally closed PO ( encumbrance enabled) . More then 100 po like this finally closed. I know oracle metalink / SR won't support open PO from back end. I need either back end or Application level PO open steps or SQL. Please help m
-
Changing interop mode 1 back to default
Hello, i need to connect MDS 9513 to McData 6140 for migration purposes, plan is to get rid of McData in the near future. McData is running in open mode 1.0 so i am planning to set VSAN mode to 1. After all systems get migrated to Cisco i would like
-
Question on Deleting data from data target
Hello Experts, I have one quesiton, what is diffrence when we right click on data target and " delete data" and when we right click on data target and go to manage and delete particular request. is it same thing or diffrent ? Please help. Regards Kri
-
Feedback on 11i modules GL, AP, FA or PO ?
We are in the process of evaluating release 11i for upgrade of modules GL, AP, FA and PO. We would be gratefull for feedback from anyone having upgraded to or implemented any of these modules on 11i. We would like to know if you have encountered prob
-
This is the error that I get when I try to Authorize my pc in Adobe Digital Editions. Can someone help me please as this error comes up while I'm on the internet and there is clearly no internet connection problem.