Code java sections
Hi All,
Can we right code in Initialization section of Java Sections of Java sections?
Thanks in advance
Best Regards,
Harleen Kaur Chadha
hi ,
Wts your exact question.
I f u want to write logic at initialization section you can write , but keep you logic in method,
and call that method in execute method.
Because execution starts from execute method.
Cheers,
Raj
Similar Messages
-
Hi All,
Under Message Mapping there is a tab Edit Java Sections . Under that there are three sections
Global Variables , Initialization and Clean Up Section. Can anyone please provide me some details on this .
I mean what is the kind of scenario when this section is used in mapping.Hi Amit,
For this particular information SAP Help is the best site.
http://help.sap.com/saphelp_nw04/helpdata/EN/ee/bf9640dc522f28e10000000a1550b0/frameset.htm
Re: difference b/w user defined functions and Java Sections
With the use of Java Edit section, you can define the global variables that can be used with UDFs on runtime.
Also you may write the intitialization code and clean-up code which can be used at the time of Method execution.
PS note : Please don't mind......but I would like to request you, before posting the questions please use the search facility on SDN. Most of the time these topics where already discussed & you will get the answers...;-))
Thanks
Swarup -
Mapping Tracing in Java Section of Message Mapping
Hi,
Is it possible to get the Mapping Trace Object in the JAVA SECTION of the Message Mapping?
To access the<a href="http://help.sap.com/saphelp_nw04/helpdata/en/c8/98e7d5c1620642973565ea3dd319d1/content.htm">Mapping Trace Object</a>, we need the instance of the <a href="http://help.sap.com/saphelp_nw04/helpdata/en/78/b4ea10263c404599ec6edabf59aa6c/content.htm">Container Object</a>. SAP help says, Container Object is made available to every User Defined Function .
What we need is how can we get the current instance of the Container Object in the JAVA Section of Message Mapping. Any ideas?
Regards,
BhaveshHi Bhavesh,
It seems you can access global container from any part of Graphical mapping.
According to Access StreamTransformation values in Java initialisation section:
<b>The mapping program is a class derived from the interface GlobalContainer. So you can use the methods of GlobalContainer all the time during the mapping program.</b>
Plz refer the link to the related thread.
Regards,
Ananth -
GlobalContainer x Global Variable Java Section
Guys,
My requirement: I have a variable that'll be read from message header with DynamicConfiguration and will be used in several UDFs in a message mapping.
Are there any problems in using either GlobalContainer object or Global Variable in Message Mapping Java Section for storing/recovering this variable?
And in the case I use Java Sections, suppose I have the following:
Global Variables
String param = null;
Initialization Section
param = "value";
Then, what do I need to use in Clean-up Section? Should I give it a null value or an empty string value? I mean, I can't understand the necessity of this section, since garbage collector would handle that variable (and supposing it will be valid only during this message mapping thread).
Any thoughts?
Thanks in advance,
Henrique.Hey William,
thank you for your input.
Yeah, I thought that too, that clean-up section would be useful when I needed to use .close() methods on the open objects.
And since java sections are newer, I think they are the prefered way too.
Regards,
Henrique. -
How do we use the Java Section (Message mapping>Design>Edit Java Sections) in IR.
Hi,
Edit Java function is to specify global variables and to mentioned about additional Java sections for all Java functions.
The mapping is internally based on Java SAX parsers so runtime first it will include the Java packages specified under Imports. It will be used if any special package need to be import else the standard Java.lang or Maths packages have default imported no need to mentione about it.
You can enter the same packages entered for a user-defined function. Then the mapping runtime declares the variables entered as global variables and executes the sections in the following order:
1. Initialization section
2. Message mapping
3. Cleanup section
Thanks
Swarup
Edited by: Swarup Sawant on Mar 10, 2008 7:25 AM -
Need example on Java Sections.....
Hi
I need example senario on java sections and how we use both java sections and user defined funtions... can u give me any blog on that..... and i need information about packages used in java for sapxi.... and which class is used for what purpose.... please help me
Thanks & Regards
Ravi shankar BHi,
Refer this blog:
/people/sap.user72/blog/2005/10/01/xi-new-features-in-sp14
and the thread:
Re: Sequence Number in XI Mapping
Regards
suraj -
How to go to java section global variable declaration
Hi all
i am following this scenario
http://www.sdn.sap.com/irj/scn/weblogs;jsessionid=(J2EE3417100)ID0446700150DB10376299506581707969End?blog=/pub/wlg/11287
in this scenario 3rd screen shot is about global variable declaration:
In order to build the content of the attachment (for this particular requirement) we use a global variable declared and initialized in the global sections :
can any body tell me how to go to this java section screen , as i am unable to find this java screen....
Thanks
sandeepeven i cant see this edit java section
i am working on PI 7.1. has this feature been removed in pi 7.1
this is replaced in PI7.1 ... check this blog on how to use the "global" variable in PI7.1:
/people/william.li/blog/2008/02/13/sap-pi-71-mapping-enhancements-series-using-graphical-variable
Regards,
Abhishek. -
Number group not maintained for CO code AM01 section IEQMGND --??
Hi All,
While i am doing T.code J1INCHLN the following error is coming
Number group not maintained for CO code AM01 section IEQMGND and business place 194C
Message no. 8I704
were to give Number group for my WHT??
Good day!!
Regards,hi
maintain the entry in SM30 for J_1IEWTNUMGR_1
same as u maintained in remittance challan number group
This hidden transaction in ECC 6
for eg
Company Code : Section Code : WHT Code: Number Group
N001 N001 194J 01
Thanks
SAPUSER5 -
Number group not maintained for CO code OIAL section IBT194CMUM and busines
Hi
while executing J1INCHLN following error is coming
"Number group not maintained for CO code OIAL section IBT194CMUM and business place 194C"
can any one explain. i have maintained all number range groups and intervelssHello
Go to SM30 and check the below table whether number range information maintained or not.
if not maintain then maintain and transport from here.
J_1IEWTNUM INTERNAL NO RANGE FOR CHALLANS- EWT INDIA
J_1IEWTNUMGR Number Groups For Internal Challan Numbers- EWT India.
J_1IEWTNUMGR_1 Number Groups For Internal Challan Numbers-EWT India:SECCO
J_1IEWTNUMGR_N Number Groups For Internal Challan Numbers-EWT India:SECCO
Still problem continues revert back,
Regards,
Sankar
Edited by: durga sankar on Feb 9, 2009 11:35 AM -
Number group not maintained for CO code 1100 section IBTCBDNNGPR
Hi Friends,
While doing TDS challan i am facing the error loke "Number group not maintained for CO code 1100 section IBTCBDNNGPR and business place 194C". But for other section code like INDR and section 194C the same error is not showing.
I checked the config for challan number range, there i didn't maintain any combination of section code and section but i maintained the number group and the no range for the group.
Still i am facing the error.
Please advice me.
Regards
Mrutyunjayahi,
Check table J_1IEWTNUMGR_1, if you had not maintained anything , Maintain the same in SM30.
Thanks and regards
Praveen.J
Edited by: Aspire FICO on May 18, 2010 10:45 PM -
Number group not maintained for CO code 1424 section IEQ1424 and business p
while create remittance challan.... this error accured Number group not maintained for CO code 1424 section IEQ1424 and business place 194C... using T- code: J1INCHLN
Hi,
Number Group and Number range not maintained for the Business Place /Off. w/Tax Key in T.code J1INUM or In this Path : SPRO Financial Accounting (New)-Withholding Tax-Withholding Tax-Posting-Posting-Remittance Challans-Remittance Challans -Excute and Maintain the Number Group and also for the Number Group ,Manain the Number Range in J1INO T.code
Once you do the above customization, the Mentioned Error will be cleared.
Thanks
Goutam -
Number group not maintained for CO code RIL section IEQRIL and business pla
Hi all,
I get an errror at the time of creation of TDS challan
"Number group not maintained for CO code RIL section IEQRIL and business place 194H"
Regards
AmitHi narayana
Thanks for ur reply. Is it requires to create entries manually in this table cant it be directly directed to this table from any other area from where the entries will be directly go to this table
Regards
Amit -
Number group not maintained for CO code 1000 section IEQ1000 and business p
Hi SAP gurus,
while i am trying to create the remittance challan in the easy access screen with the tt.code J1INCHLN an error message is coming like "Number group not maintained for CO code 1000 section IEQ1000 and business place 194C". Can anybody suggest me how to solve this. Points will be assigned
Regards
CurtisHi,
Check the following information once again...
Use the following path:
SAP Customizing Implementation Guide >> Financial Accounting>> Financial Accounting Global Settings >> Withholding Tax >> Extended Withholding Tax >> Postings>> India >> Remittance Challans >>
Maintain Number Groups
Assign Number Ranges to Number Groups
Maintain Number Ranges
1.Maintain number groups
co.code Sec.code official w.h.tax key no.group
1000 1000 194c 01
2.Assign Number Ranges to Number Groups
Number group Int nr
EX: 01 01
3.Maintain Number Ranges
click on change intervals
enter the relevant company code
ex:
Year From number to number current number EXT ...
2008 1000000 1999999
Check with previious no.ranges, if this is the first time use the new number range or existing number range
It will resolve ur issue.
all the best -
Can i code Java on Xcode 4.6.2
Hello there,
Can i code java on Xcode 4.6.2?
Plz reply
Awan67Maybe this will help. If you monitor the "More Like This" box (top right), other threads appear. Opening them usually displays other threads.
https://discussions.apple.com/message/19606302#19606302 -
Hi,
I try to generate a sequence number as described in this thread:
Re: Sequence Number in XI Mapping
Unfortunately I allways got the error:
[...] found : int required: java.lang.Integer Integer counter =0;
What do I wrong with this example? Obviously it will not except my counter declaration? May be someone has a working example for a sequence generator.
Regards OliverHi Bhavesh
I just declared the example of the other thread and of course you are right, I declared the following:
Global Variables:
int counter;
Initialization Section:
counter=10;
and the Id Counter UDF is as simple as following:
String a = Integer.toString(counter);
counter = counter + 1;
return a;
I did not use any get/set methods anymore. Is this the new functionality to access global parameter directly? Is there any risk regarding this?
Regards Oliver
Maybe you are looking for
-
Error messages when trying to install itunes
I keep getting the message "could not write value to key\software\classes\.rmp\openwithlist\itunes.exe PLEASE HELP ME.... i'm about the throw the computer out the window! thanks.
-
Trying to email megre from Word to PDF, but keep getting error
I'm doing a mail merge in MS Word 2007 and when finishing I click on the Merge to Adobe PDF. Under the Email Options Automatically send Adobe PDF files by Email. Everything seems to work fine until I get the error MAPI logon unsuccessful! Cannot em
-
Is there a conflict with iTunes 6 when using FCP 4.5
hi, I have had to reinstall my os because of a conflict between FCP 4.5 and QT 7. My question is: Will downloading iTunes 6 cause problems with my FCP 4.5? I can't play any songs I downloaded from iTunes w/o downloading iTunes 6. I just want to make
-
Window Media player and mail account setup
Hi: i am new Mac use, i encounter a problem when following the link below to download the WMP. http://www.apple.com/downloads/macosx/video/windowsmediaplayerformacosx.html when i open(or double click) the template on the download folder after i click
-
Unable to upload document in KM Content
Hi all, I am uploading documents into KM content by following path Folder> New> Upload. Previously it was working fine but today the document is not getting uploaded and it is not giving any error message also. I followed the path Fo