FORM ENTRY in Scripts
Hi all,
can anybody explain me the working of FORM ENTRY subroutine used in SAP scripts..
Thanks in advance,
Rakesh..
Rakesh,
This is the FORM that will be called from the standard transaction dynamically.
You configure a PROGRAM name in the SPRO, you also specify the PERFORM name here, which is usually ENTRY. This program will have the call the SAP Script / SMART Form right.
So, the standard transaction will call the ENTRY form of the Program name you have configured dynamically.
This is where the processing for the SAP Script will start.
Regards,
Ravi
Note : Please mark the helpful answers
Similar Messages
-
The Scottrade web sight requires an account number as well as a password to log in. I inadvertently typed in an incorrect number and would like to eliminate it from the 'remembered' accounts. My only solution seems to be to turn off Remember Search and Form Entry but that impacts the correct account numbers and all other web sites as well.
Click the (empty) input field on the web page to open the drop down list
Highlight an entry in the drop down list
Press the Delete key (on Mac: Shift+Delete) to remove it.
http://kb.mozillazine.org/Deleting_autocomplete_entries
Firefox/Tools > Options > Privacy > Firefox will: "Use custom settings for history" > "Remember search and form history"
https://support.mozilla.com/kb/Form+autocomplete -
Custom Target Reconciliation with child form entries in OIM 11g
Hello experts,
I have developed custom scheduler code to reconcile users from target system to OIM. In this code I am using the API createReconciliationEvent(java.lang.String psObjectName, java.util.Map poData, boolean pbFinishEvent). If the reconciled user does not have any child form entries(like roles and groups) then the user account is linked to OIM user profile but if the user has child form entries then user is not getting reconciled to OIM. In the logs it says...
oracle.iam.platform.utils.SuperRuntimeException: -104: Error occurred in XL_SP_RECONEVALUATEUSER while processing Event No 849 Error occurred in XL_SP_RECONREQDATACHECK while processing Event 849 'Event Received' is an invalid event status. Valid event states are Data Received,Data Validation Failed,Being Re-evaluated,Being Re-tried
at oracle.iam.reconciliation.dao.ReconActionDao.executeUserMatch(ReconActionDao.java:393)
at oracle.iam.reconciliation.impl.UserHandler.process(UserHandler.java:64)
at oracle.iam.reconciliation.impl.ActionEngine.processEvent(ActionEngine.java:194)
at oracle.iam.reconciliation.impl.ReconOperationsServiceImpl.processReconciliationEvent(ReconOperationsServiceImpl.java:982)
at oracle.iam.reconciliation.api.ReconOperationsServiceEJB.processReconciliationEventx(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.bea.core.repackaged.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:310)
at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at com.bea.core.repackaged.springframework.jee.spi.MethodInvocationVisitorImpl.visit(MethodInvocationVisitorImpl.java:37)
at weblogic.ejb.container.injection.EnvironmentInterceptorCallbackImpl.callback(EnvironmentInterceptorCallbackImpl.java:54)
at com.bea.core.repackaged.springframework.jee.spi.EnvironmentInterceptor.invoke(EnvironmentInterceptor.java:50)
at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at com.bea.core.repackaged.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)
at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at com.bea.core.repackaged.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
at $Proxy334.processReconciliationEventx(Unknown Source)
at oracle.iam.reconciliation.api.ReconOperationsService_emc07d_ReconOperationsServiceRemoteImpl.__WL_invoke(Unknown Source)
at weblogic.ejb.container.internal.SessionRemoteMethodInvoker.invoke(SessionRemoteMethodInvoker.java:40)
Here is my code...
public void reconCall(String ResourceObject, Hashtable mUserDetail)
ReconOperationsService tcreconObj =null;
EventAttributes eventattr= new EventAttributes();
ArrayList roles=roleOfUser(mUserDetail.get("CommanName").toString(),mUserDetail.get("OrganizationUnit").toString());
ArrayList groups=groupOfUser(mUserDetail.get("CommanName").toString(),mUserDetail.get("OrganizationUnit").toString());
if((roles.size()==0)&& (groups.size()==0))
eventattr.setEventFinished(true);
else
eventattr.setEventFinished(false);
try
LOGGER.info("In com.gapp.recon.tasks.ReconAllUsers reconCall()");
LOGGER.info("Creating object of Thor.API.Operations.tcReconciliationOperationsIntf");
tcreconObj = Platform.getService(oracle.iam.reconciliation.api.ReconOperationsService.class);
LOGGER.info("Creating reconcilation event");
long lnreckey = tcreconObj.createReconciliationEvent(ResourceObject, mUserDetail, eventattr);
if(roles.size()==0)
LOGGER.info("there are no roles for the user");
if(roles.size()>0)
tcreconObj.providingAllMultiAttributeData(lnreckey, "RoleName", true);
LOGGER.info("Iterating roles");
LOGGER.info(roles.toString());
for(int k=0; k <roles.size(); k++)
LOGGER.info("Iteration "+k);
HashMap multiroles=new HashMap();
LOGGER.info("Adding role to hashmap");
multiroles.put("RoleName", roles.get(k));
LOGGER.info(multiroles.toString());
long j= tcreconObj.addMultiAttributeData(lnreckey, "RoleName", multiroles);
LOGGER.info("addMultiAttributeData key "+j);
if(groups.size()==0)
LOGGER.info("There Are No Groups For This User");
if(groups.size()>0)
tcreconObj.providingAllMultiAttributeData(lnreckey, "GroupName", true);
LOGGER.info("Iterating groups");
LOGGER.info(groups.toString());
for(int k=0; k <groups.size(); k++)
LOGGER.info("Iteration "+k);
HashMap multigroups=new HashMap();
LOGGER.info("Adding group to hashmap");
multigroups.put("GroupName", groups.get(k));
LOGGER.info(multigroups.toString());
long j= tcreconObj.addMultiAttributeData(lnreckey, "GroupName", multigroups);
LOGGER.info("addMultiAttributeData key "+j);
// LOGGER.info("executing processReconciliationEvent");
tcreconObj.processReconciliationEvent(lnreckey);
//LOGGER.info("executing finishReconciliationEvent");
// tcreconObj.finishReconciliationEvent(lnreckey);
// LOGGER.info("executing updateScheduletaskattribute");
}Pls Help.
ThanksYou gotta specify your child table recon-field in the process definition mappings as a Key Field. Refer OOTB AD connector and check:
Process Definition -> AD User ->Reconciliation Field Mappings -> memberOf -
Use of us_screen in the form routine : FORM entry USING retcode us_screen
Hello All,
I have one print program entry routine as below.
FORM entry USING retcode us_screen.
Some code to print the form data...
EndForm.
When i Check the value of us_screen in the debuging, its value is coming as blank.
When i checked the other form routine the value of us_screen is coming as 'X.
I am my getting why in my case value of us_screen is coming as blank.
What is significant of this field.
Thanks & Regards
Sachin YadavCusomization might be missing for that output type in transaction NACE.
us_screen is blank because below query fails due to missing entry in table TNAPR.
SELECT SINGLE * FROM TNAPR WHERE KSCHL = P_KSCHL
AND NACHA = P_NACHA
AND KAPPL = P_KAPPL.
First assign the output type with a Transmission medium, Program, Form Routine, Form in transaction NACE
Take the help of your functional consultant. -
How to print " Duplicate " in FORM ( either Sap Script or Smart Forms )
hi,
How to print " Duplicate " in FORM ( either Sap Script or Smart Forms ) if trying to take second Print Out and the FORM is already Printed.
Please let me know the condition that we should go for.If possible let me know the SAMPLE code since this will be used in most of the FORMS.
Regards
AviHi
It depends on which print you're working.
If it's a print of standard document you can check the NAST (VSTAT field) table in order to know if the document was printed.
If a message is created you can find the hit in NAST table:
VSTAT = 0, document not printed;
VSTAT = 1, documment printed
VSTAT = 2, print is failed
If you mean a custom print I believe you need to create a log like NAST table.
Max -
Where are my Web Form entries stored in the webBasics plan?
Where are my Web Form entries stored in the webBasics plan? Currently—in my trial site—I can access Web Form responses through a Custom Report. Will this option be available to me in the webBasics plan?
My hope is to use the webBasics plan with a Web Form (and a few custom fields) and have the reponses stored for me in the Businsess Catalyst interface.You do not get the CRM element of BC with the webbasic plan. With BC storing the forms it creates "cases" Which are stored against the "Customer" in the "CRM". You dont have access ot that with the webbasic plan.
-
Small white cross on black square appears at end of field in form entry - how do I remove it?
Small white cross on black square appears at end of field in form entry - how do I remove it?
In Adobe Acrobat change the size of the text field.
-
To Learn Form Painter (SAP Scripts)
Hi Friends,
I want to Learn Form painter (SAP scripts),
can anybody share their knowlege (notes, example programs, links etc).
My requirement is to print the Inovice, Labels using Intenal table etc.,
Thanks
ShankarHi,
Have a look at these good links-
<b>SAP Scripts</b>
http://www.sap-img.com/sapscripts.htm
http://sappoint.com/abap/
http://www.henrikfrank.dk/abapexamples/SapScript/sapscript.htm
http://help.sap.com/saphelp_crm40/helpdata/en/16/c832857cc111d686e0000086568e5f/content.htm
http://www.sap-basis-abap.com/sapabap01.htm
http://www.sap-img.com/sapscripts.htm
http://searchsap.techtarget.com/tip/1,289483,sid21_gci943419,00.html
http://sap.ittoolbox.com/topics/t.asp?t=303&p=452&h2=452&h1=303
http://www.sapgenie.com/phpBB2/viewtopic.php?t=14007&sid=09eec5147a0dbeee1b5edd21af8ebc6a
<b>Other Links</b>
http://www.virtuosollc.com/PDF/Get_Reporter.pdf
http://help.sap.com/saphelp_47x200/helpdata/en/da/6ada3889432f48e10000000a114084/frameset.htm
http://help.sap.com/saphelp_erp2005/helpdata/en/66/bc7d2543c211d182b30000e829fbfe/frameset.htm
http://help.sap.com/saphelp_erp2005/helpdata/en/5b/d22cee43c611d182b30000e829fbfe/frameset.htm
http://www.virtuosollc.com/PDF/Get_Reporter.pdf
http://help.sap.com/saphelp_47x200/helpdata/en/da/6ada3889432f48e10000000a114084/frameset.htm
http://help.sap.com/saphelp_erp2005/helpdata/en/66/bc7d2543c211d182b30000e829fbfe/frameset.htm
http://help.sap.com/saphelp_erp2005/helpdata/en/5b/d22cee43c611d182b30000e829fbfe/frameset.htm
http://www.thespot4sap.com/Articles/Code_CostCentreReport.asp
http://www.allsaplinks.com/dialog_programming.html
http://help.sap.com/saphelp_webas630/helpdata/en/9f/db9cdc35c111d1829f0000e829fbfe/frameset.htm
http://www.allsaplinks.com/files/using_table_in_screen.pdf
http://www.geocities.com/ZSAPcHAT
Mark useful answers.
Regards,
Tanuja.
Message was edited by: Tanuja Sarraju -
Validate form entries: does java support regular expressions?
i want to validate form entries, does java support regular express like javascript?
Just recently in 1.4 regex was finally introduced :)
Take a look at http://developer.java.sun.com/developer/technicalArticles/releases/1.4regex/ -
Form routines in scripts...
hi everybody,
can any one tell me the procedure how to use form routiens in scripts.
thnx in advance,
santosh.Hi
See the sample routines
How to call a subroutine form SAPscripts
The Form :
/:PERFORM CDE_CENT IN PROGRAM ZKRPMM_PERFORM_Z1MEDRUCK
/:USING &EKKO-EBELN&
/:CHANGING &CDECENT&
/:ENDPERFORM
The report :
REPORT zkrpmm_perform_z1medruck .
DATA : BEGIN OF it_input_table OCCURS 10.
INCLUDE STRUCTURE itcsy.
DATA : END OF it_input_table.
déclaration de la table output_table contenant les
variables exportées
DATA : BEGIN OF it_output_table OCCURS 0.
INCLUDE STRUCTURE itcsy.
DATA : END OF it_output_table.
DATA : w_ebeln LIKE ekko-ebeln,
w_vbeln LIKE vbak-vbeln,
w_zcdffa LIKE vbak-zcdffa.
FORM CDE_CENT
FORM cde_cent TABLES input output.
it_input_table[] = input[].
it_output_table[] = output[].
READ TABLE it_input_table INDEX 1.
MOVE it_input_table-value TO w_ebeln.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
input = w_ebeln
IMPORTING
output = w_ebeln.
SELECT SINGLE zcdffa FROM ekko
INTO w_zcdffa
WHERE ebeln = w_ebeln.
it_output_table-name = 'CDECENT'.
MOVE w_zcdffa TO it_output_table-value.
MODIFY it_output_table INDEX 1.
output[] = it_output_table[].
ENDFORM.
REPORT ZMPO1 .
form get_freight tables in_par structure itcsy out_par structure itcsy.
tables: ekko,konv,t685t.
data: begin of itab occurs 0,
ebeln like ekko-ebeln,
knumv like ekko-knumv,
end of itab.
data: begin of itab1 occurs 0,
knumv like konv-knumv,
kposn like konv-kposn,
kschl like konv-kschl,
kbetr like konv-kbetr,
waers like konv-waers,
kwert like konv-kwert,
end of itab1.
data: begin of iout occurs 0,
kschl like konv-kschl,
vtext like t685t-vtext,
kbetr like konv-kbetr,
kwert like konv-kwert,
end of iout.
data v_po like ekko-ebeln.
read table in_par with key 'EKKO-EBELN'.
if sy-subrc = 0.
v_po = in_par-value.
select
ebeln
knumv
from ekko
into table itab
where ebeln = v_po.
if sy-subrc = 0.
loop at itab.
select
knumv
kposn
kschl
kbetr
waers
kwert
into table itab1
from konv
where knumv = itab-knumv and
kappl = 'M'.
endloop.
loop at itab1.
if itab1-kposn <> 0.
select single * from t685t
where kschl = itab1-kschl
and kappl = 'M'
and spras = 'EN'.
iout-vtext = t685t-vtext.
iout-kschl = itab1-kschl.
iout-kbetr = itab1-kbetr.
iout-kwert = itab1-kwert.
append iout.
clear iout.
endif.
endloop.
sort itab1 by kposn.
loop at iout.
sort iout by kschl.
if ( iout-kschl eq 'GSDC' OR
iout-kschl eq 'GSFR' OR
iout-kschl eq 'GSIR' ).
at end of kschl.
read table iout index sy-tabix.
sum.
write:/ iout-kschl,iout-vtext,iout-kwert.
out_par-name = 'A1'.
out_par-value = iout-vtext.
append out_par.
out_par-name = 'A2'.
out_par-value = iout-kwert.
append out_par.
endat.
endif.
endloop.
endif.
endif.
endform.
IN THE FORM I AM WRITING THIS CODE.
/:DEFINE &A1& = ' '
/:DEFINE &A2& = ' '
/:PERFORM GET_FREIGHT IN PROGRAM ZMFORM_PO1
/:USING &EKKO-EBELN&
/:CHANGING &A1&
/:CHANGING &A2&
/:ENDPERFORM
&A1&
&A2&
This Code is to be written in the PO form under ADDRESS window.
/:DEFINE &A1& = ' '
/:DEFINE &A2& = ' '
/:DEFINE &A3& = ' '
/:DEFINE &A4& = ' '
/:DEFINE &A5& = ' '
/:DEFINE &A6& = ' '
/:PERFORM GET_VENDOR IN PROGRAM ZMFORM_PO
/:USING &EKKO-EBELN&
/:CHANGING &A1&
/:CHANGING &A2&
/:CHANGING &A3&
/:CHANGING &A4&
/:CHANGING &A5&
/:CHANGING &A6&
/:ENDPERFORM
&A1&
&A2&
&A3&
&A4&
&A5&
&A6&
Reward points for useful Answers
Regards
Anji -
Import PE51 Form to SAP Script
Hello Experts,
I am Importing PE51 form to SAP Script.The Problem is after Executing the Program RFFOUS_C the PE51 form is coming...into SAP Script But it(PE51 Form) is Compressing?.I don't know why?.But when i executing the Program RPCDTCU0_CE.The PE51 Form is Showing Exactly..without any Compression.
In Searching the Forum i have found these threads..But in these threads i haven't found any Solution
Integration of SAP Script form and HR Form
PE51 - Form Editor
Thanks in advance.Hey ankur,
Normally you get dashes instead of line because of two reasons:
1. Because the Font Size you are using for the Line is Small hence it cannot print a continous Line..
Please increase the Font Size and try checking in the Layout.
2. Sometimes the SAP printer you have configured does not support the Font Type You have used in Scripts...
Kindly check T-CODE SPAD to see the Device type of the printer you are using supports that font.
Hope this helps you...Have a nice day at work..
Thanx,
Navin.... -
Redirect based upon a form entry.
I'm trying to get one of two pages to load depending on a form entry. The form consists of one text field (asking for the person's zip code), If the zip code is found in a master table, I would like them to be directed to one page. If it is not in the list, I would like them to be directed to another.
Any advice on how to tackle this issue? I'm working with .asp in Dreamweaver CS4.
Thank you in advance from a novice! -DavidWell, I didn't try that with ADDT, but I think you should:
1- Create a recordset that queries the zip code column with a Filter set to the form element's data;
2- If the result is greater than 0 (if my memory is good, you have a Recordset_total in ASP), then it means that it's in the table... so you redirect to the first page... else, you redirect to the second page.
Hope this helps... If you need more details on how to do this, post back.
Nelson -
What is the form name (SAP script name ) for KO02 output .
Hai ,
what is the form name (SAP script name ) for KO02 output . and also pl guide how to customize that.
thank u in advancespro---->controlling ->internal Order->Order Master Data----> Prepare Output and see the documentation of this.
Regards
Peram -
Does this make sense?
I've tried erasing history but nothing has changed.
All help is most appreciated.Your location bar or "Awesome Bar" can be set to display your bookmarks, history, bookmarks and history together, or nothing at all based on what you input into it. To change what content this bar displays or to disable the location bar autocomplete list altogether, see [https://support.mozilla.org/en-US/kb/Location%20bar%20autocomplete#w_changing-your-location-bar-settings Changing location bar settings]. Regarding form entries, the [[Form autocomplete]] article has information on deleting saved form entries or preventing them from being saved.
-
How to publish infopath form using powershell script in infopath 2010?
Is any approach for such solution.Hi,
Try below command:
Uninstall the existing solution (based on the from file name):
Uninstall-SPInfoPathFormTemplate -Identity Exampleform.xsn
Install the new solution (based on the from file name):
Install-SPInfoPathFormTemplate -Path C:\Form.xsn
Disable feature on site collection level
Disable-SPInfoPathFormTemplate -Identity "Form.xsn" -Site http://SPSite
Enable feature on site collection level
Enable-SPInfoPathFormTemplate -Identity "Form.xsn" -Site "http://SPSite"
See this blogs for your ref:
http://rgielen.blogspot.in/2010/11/deploy-infopath-2010-forms-with.html
http://mysharepointwork.blogspot.in/2010/09/deploy-infopath-forms-with-powershell.html
Hope it could help
Hemendra: "Yesterday is just a memory,Tomorrow we may never see"
Whenever you see a reply and if you think is helpful, click "Vote As Helpful"! And whenever
you see a reply being an answer to the question of the thread, click "Mark As Answer
Maybe you are looking for
-
How do I open an iTunes account?
I am living pin jamaica West Indies and I cannot access iTunes on either my iphone5 or my ipad2. What can I do to remove and reinstall iTunes on my devices?
-
How to send e-mails with attachments using microsoft exchange servers?
I was wondering if there was a way to send e-mails with attached data files. The e-mail server utilizes a Microsoft Exchange Server. I would appreciate any help that is provided.
-
How to change heder text font of table
Hi i want to change font and color of header text of the table can you please tell how to do it. Thanks Rahul
-
External DVD No Longer Working
I was burning some CDs in Itunes using an external USB DVD writer today. Went to reboot after updates and system ended up stuck and requiring a power off. After booting back up, the DVD writer is no longer recognized. System Profiler does not show a
-
Version conflict while targeting a vi to RT engine
When i am targeting a vi to Labview RT engine the message "Version Conflicts between Host Labview and RT engines" is coming. I am using a CFP-2100 and want to run a vi on it. (No PC should be connected with it) After targetting how will i execute it