To do coding in 00 abap
Hi,
i am a BI developer working with oo abap, i need to code a class with private helper methods, can you tell me the best way to do this and if possible how to debug them. Should i code in abap editor and transform it into a class and methods. Please help.
Thanks.
Cherrt
Hi,
I'm not sure if I understand your question.. modularization is (of course) achieved by implementing methods in your helper class.
For unit-testing purposes it doesn't really matter if the methods are private or public. That setting just controls who can call the methods.
Anyway, implementing helper (or utility) classes is really not that different from old-school abap coding! Give it a go & have fun.
cheers
Paul B
Similar Messages
-
Standard coding practise in ABAP
Could anyone provide me the parameters for standard coding practise in abap before implementing any process ???
Hi,
you can use a IFRAME and run a Portal transaction Iview for IB52 inside the WD-IFRAME.
For that you first have to create an iview for the Transaktion IB52 inside your Portal.Then call the preview of the Iview. This Preview-URL(or the PCD) you can call as source inside the WD-IFRAME. For me this works fine.
Regards
Frank -
Note 1572302 - Hard-coded credentials in ABAP DDIC
Hello,
Have you read [Note 1572302 - Hard-coded credentials in ABAP DDIC|https://service.sap.com/sap/support/notes/1572302] ?
I had a good laugh when I read it. Before implementing the note or the corresponding SP, you'd better check the usernames in your production system !
I know 14 SAP employees that must have get some good congratulations !
I am also a little afraid by the lack of source code reviewing before distribution to customers....
Regards,
OlivierJulius Bussche wrote:
From my experiences SAP are also very responsive to reporting such issues, though 1st level support on SMP might initially tell you that the solution is not to use it...
Well, if you have found a security issue and face difficulties to address it properly, kindly do not hesitate to [report it via mail (PGP encrypted) to SAP|/docs/DOC-8218#section36 [original link is broken]]. -
Finding Hard coded Text in ABAP program
Gurus,
Is there any method to find out Hard coded TEXT in an abap Program? For Example
write:/ TEXT-T01,
'Hello World',TEXT-T02.
In which i need to find out Hello world which is inside ''. I am not able to find with Search command.
Can you Please guide me,
Regards,
Lijo Joseph
Message was edited by: Lijo Joseph vazhappillytry this.
data: report_pg type SY-REPID ,
rpt_source type standard table of D022S .
REFRESH rpt_source .
move: <rpt name> to report_pg .
READ REPORT report_pg INTO rpt_source .
now do a search/find in rpt_source.
Regards
Raja -
Creating dropdown by coding in Webdynpro ABAP
Hi experts,
I have a requirement to display a dropdown in the portal. But I cannot add it directly in the webdynpro layout as I am using standard WD component. So only through enhancement, it can be achieved. I am not sure how to create a dropdown by coding in the WD component.
Kindly throw your valuable inputs here.
Thanks in advance!!!
Regards
Raaam'sHi.,
You have to enhance your standard WDA component.
Check this wiki: [Create UI Elements Dynamically in WDA|http://wiki.sdn.sap.com/wiki/pages/viewpage.action?pageId=141263105]
also check : [Dynamic Binding , Dynamic Mapping|http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/201ddd3b-b4ce-2b10-8883-880ae8147f89]
and DEMODYNAMIC WDA Standard Component
hope this helps u.,
Thanks & Regards,
Kiran -
Coding for ABAP Proxy and mapping
Hi XI Ds
which one need coding neither ABAP Proxy nor ABAP Mapping
ThanksHi Kushee ,
We need coding for both ABAP Proxy and mapping. We need to know some OO(Object Oreinted) ABAP concepts.
We can also import JAVA CODE for certain functionality.
Check the following websites for clarity:
how to create a flat file out of an IDoc-XML by means of an ABAP mapping program and the J2EE File Adapter.
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/46759682-0401-0010-1791-bd1972bc0b8a
cheers!
gyanaraj -
Coding ABAP using LDB PNP and authorizations problems
This post requires a blend of ABAP and HCM skills.
When coding my own ABAP using LDB PNP, the LDB will provide me with the employees selected but will skip those for which I do not have access (regarding Authorizations settings) to one or more of the infotypes declared in the program.
As a programmer I would like to receive from the LDB the information that an employee is skipped so that I can handle the exception.
Do you know how can I get this information from the LDB?
ThanksI dont know if PNP can do it but PNPCE can:
at END-OF-SELECTION call macro PNP_GET_AUTH_SKIPPED_PERNRS
it will provide a list of skiped PERNRs
for further info see docu PNPCE -
ABAP coding required in order to send Output via External Send (5)
Hi
I require some coding to an ABAP program in order for my SD output to be succesfully sent by 'external send'
I have a shipping output type.
assigned Partner functions and applicable mediums - 1, 2 and 5
however when trying to produce output via comm method 5, external send, i am gettting red error messages/ traffic ligh
processing log is as follows:-
"processing log for program xxxxxxxx routine ENTRY
Please enter an address number
communication type cannot be used"
all outputs for medium types 2 Fax and 1 print are all OK for all Partner functions involved
I have changed to another output which works fine,:- altho as this was written specifically for another outut,and form, so there is a lot of data missing on the form with this program.
we have tried to deciper the coding on the program that does work, but to no avail
Many thanks for your help on this matter
TonyYou need to maintain/fill ADDR_KEY structure in the print program....
-
Unique ID in ABAP stack across all Envrionment.
In ABAP Stack is there any table which uniquely identifies one interface mapping across all environments. The requirement is to get a unique ID in ABAP stack (this needs to be hard-coded in an ABAP mapping) which is common in all environment.
There is a table SXMSPFADDRESS which is the master table for addresses in XI i.e. Party, Service, Interface and namespace, and has key address id that is used at many places in XI runtime. But the addressID is different in different environment and hence cant be used.Hi,
maybe start with a description of the issue and we will try to help with some other idea ?
Regards,
Michal Krawczyk -
HI Gurus,
I have a report in R/3. This is using around 4 tables to populate the output. Where the output has around 30 fields to populate. But, when we analysed we found that some of the values are populating wrong values.
But, anyhow the requirement is to develop reports in BW of the same sort for analyses. For this how can I carry out the extraction process to extract the data to BW.
Please help me out.
Regards,
NDHi,
R/3
1. go to RSO2 - create a datasource
2. use "transaction data"
3. use the method "function module" - use as template RSAX_BIW_GET_DATA_SIMPLE
4. create a new function module with the coding from your ABAP program
5. create a strucure, that you want to copy to BW.
BW
1. replicate a datasource
2. create a infocube
Sven -
How to change the width of ABAP editor...???
Hi all,
Can anyone let me know to inc+/dec- the width of coding span of ABAP editor.?
Thanks & Regards,
RajeevHi,
You can not change the width of ABAP editor, You can only change the compatibility because the older ABAP editor only supports 72 char length, so in your new ABAP editor you can go to utilities->ABAP EDITOR->EDITOR and check the "Downward-Compatible line length(72)" . -
Hi friends,
I want a clear idea of what is the diference between data type 'f' and 'p' with examples and in what situation which should be used.
Similary what and where is 'x' and 'xstring' is used .. In what situations we 'll handly BYTE data ?????
Iam not at all clear ... so eagerly waiting for ur responses with sample examples and clear explanations
thanks in advance
Cheers,
R.Kripa.Hi Kripa,
Types X and XSTRING are for binary data. For type X, the length of the data is specified at declaration, whereas for XSTRING, it can arbitrarily grow as for STRING.
X binary octets RAW base64 string
Type X is used for binary octets. The length of the octets sequence must be specified at declaration. The initial value of each octet is 0.
The lexical representation of binary octets is a sequence of characters in the MIME base64 format.
There are two possible representations of data of type X, namely base64 and hex. base64 is a preferred binary coding scheme in the Internet community. There are standard libraries for encoding and decoding. base64 uses about 33% less space over hex coding. Although ABAP MOVE uses hex coding for binary to character conversion, base64 will be used to represent data of this type in XML.
Note that the sequence of octets is transformed by the base64 encoding. The result, interpreted as a sequence of US-ASCII characters, appears as a sequence of Unicode characters in the content of that element.
Dictionary type RAW corresponds to this type.
XSTRING variable length binary octets RAWSTRING base64 string
Type XSTRING is used for a variable length binary octets. The initial value is ''. The length can vary as the string grows.
The lexical representation of this type is the same as Type X.
This type corresponds to the binary type.
Dictionary type RAWSTRING corresponds to this type.
Regards,
Raj -
Hello MDM Guru's,
Could you please help me to understand the role of ABAP in MDM. i underestand ABAP API's role (interfaces) can be used, However i want know what kind of requirements do we get to use ABAP based coding & what kind of customization could be done, could i use Business Workflow from ABAP in MDM.
Any documents or links please.
Thanks in advace
Cheers
SrihariHi Srihari,
The role of MDM with ABAP is basically the utilization of the MDM functionalities and features from an ABAP server.
It is a way to connect to the MDM system from another system which does not understand MDM language.
As MDM is a C++ based system and ABAP is an ABAP language based ERP system.If you want to talk to the MDM system from an ABAP system you need to inteface them through the ABAP API's.
Doing this you can then Search,create ,update Run matching strategies etc from teh ABAP system just by using the Preconfigured classes and methods.Whereever a n enhancemendt is needed which is more than the standard delivered functionlaity of MDM you can utilize the coding ability of ABAP to achieve it.
Few Real time requirement that I came across of using ABAP interfcae to MDM are
- Creating ABAP design ALV reports that is a result of MDM Master data stored within the MDM repositories.
- The logs that are available with MDM are the standard delivered ones which are not easily understandable.We can use ABAP is an effective way to develope a user friendly report explaining the MDM logs
- Something similar to the above can bo done with the change tracking feature of MDM.
- Also ABAP api can be used with effective coding and customization to make available the Master data from MDM as an F4 help in abap.
Regarding using ABAP business workflow in MDM or viceversa,I guess is not a feasible thing to do.
You can however use the Consistent MDM outputted data in ECC and run a separate governance on it through an ECC workflow using ABAP.
To know more on what standard features as well as customized features that can be delivered through the MDM-ABAP interface .Kindly refer the MDM ABAP API series how to guides
Hope It Helped
Thanks & Regards
Simona Pinto -
Hi Friends
I have a doubt about Netweaver abap workbench coding part.
Generally in R/3 architecture if we want to write the coding we can use se38 or se80.
What about netweaver architecture abap coding?. i have little bit of idea about this but still i am not sure about this part .So please lemma now how is if anybody have any idea about this.
In netweaver architecture we have two enginee parts J2EE AND ABAP. this is my question how we can write the coding in netweaver abap?.
Regards
SaravananHello Saravanan,
you can Code ABAB as you've done alway in SE38 and SE80.
Regards
Gregor -
Hi friends.. Good Evening to everyone.. Well am an BW Consultant... I dont know abt coding...
Actualy i have a written coding in BW Routine which implement to any kind of transformation that was coded in the ABAP Programing language...
<i><u>My Program is:-</u></i>
IF COMM_STRUCTURE-DOC_CATEG = 'M' AND
COMM_STRUCTURE-ITEM_CATEG = 'TAN' AND
COMM_STRUCTURE-BILL_CAT = 'L'AND
COMM_STRUCTURE-KINAK = " ".
IF COMM_STRUCTURE-CON_TYPE = 'ZBPM' OR COMM_STRUCTURE-KINAK = " ".
SRESULT = COMM_STRUCTURE-KNVAL.
ELSEIF NOT COMM_STRUCTURE-CON_TYPE = 'ZBPM' AND COMM_STRUCTURE-CON_TYPE = 'ZBPO'
SRESULT = COMM_STRUCTUE-KNVAL.
ELSEIF COMM_STRUCTURE-CON_TYPE = 'ZEXT'
SRESULT = COMM_STRUCTUE-KNVAL.
ELSEIF COMM_STRUCTURE-CON_TYPE = 'ZEXT' AND COMM_STRUCTURE-CON_TYPE = 'ZECX'
SRESULT = COMM_STRUCTUE-KNVAL.
ELSEIF COMM_STRUCTURE-CON_TYPE = 'ZECX' AND COMM_STRUCTURE-CON_TYPE = 'JECX'
SRESULT = COMM_STRUCTUE-KNVAL.
ELSEIF COMM_STRUCTURE-CON_TYPE = 'ZEXM'
SRESULT = COMM_STRUCTUE-KNVAL.
ELSEIF COMM_STRUCTURE-CON_TYPE = 'JMAN'
SRESULT = COMM_STRUCTUE-KNVAL.
ELSEIF COMM_STRUCTURE-CON_TYPE = 'JEX2'
SRESULT = COMM_STRUCTUE-KNVAL.
ELSEIF COMM_STRUCTURE-CON_TYPE = 'ZK04'
SRESULT = COMM_STRUCTUE-KNVAL.
ELSEIF COMM_STRUCTURE-CON_TYPE = 'ZK4A'
SRESULT = COMM_STRUCTUE-KNVAL.
ELSEIF COMM_STRUCTURE-CON_TYPE = 'ZK07'
SRESULT = COMM_STRUCTUE-KNVAL.
ELSEIF COMM_STRUCTURE-CON_TYPE = 'ZK7A'
SRESULT = COMM_STRUCTUE-KNVAL.
ENDIF.
ENDIF.
MY Error is : -Field "IF" is unknown. It is neither in one of the specified tables nor
defined by a "DATA" statement. "DATA" statement.
What was the meaning for that error.....
CHEERZ,
ALURIHi Aluri,
all statements should end with Period (.).
I have corrected the code, please try to use this.
IF COMM_STRUCTURE-DOC_CATEG = 'M' AND
COMM_STRUCTURE-ITEM_CATEG = 'TAN' AND
COMM_STRUCTURE-BILL_CAT = 'L' AND
COMM_STRUCTURE-KINAK = " ".
IF COMM_STRUCTURE-CON_TYPE = 'ZBPM' OR
COMM_STRUCTURE-KINAK = " ".
SRESULT = COMM_STRUCTURE-KNVAL.
ELSEIF NOT COMM_STRUCTURE-CON_TYPE = 'ZBPM' AND
COMM_STRUCTURE-CON_TYPE = 'ZBPO'.
SRESULT = COMM_STRUCTUE-KNVAL.
ELSEIF COMM_STRUCTURE-CON_TYPE = 'ZEXT'.
SRESULT = COMM_STRUCTUE-KNVAL.
ELSEIF COMM_STRUCTURE-CON_TYPE = 'ZEXT' AND
COMM_STRUCTURE-CON_TYPE = 'ZECX'.
SRESULT = COMM_STRUCTUE-KNVAL.
ELSEIF COMM_STRUCTURE-CON_TYPE = 'ZECX' AND
COMM_STRUCTURE-CON_TYPE = 'JECX'.
SRESULT = COMM_STRUCTUE-KNVAL.
ELSEIF COMM_STRUCTURE-CON_TYPE = 'ZEXM'.
SRESULT = COMM_STRUCTUE-KNVAL.
ELSEIF COMM_STRUCTURE-CON_TYPE = 'JMAN'.
SRESULT = COMM_STRUCTUE-KNVAL.
ELSEIF COMM_STRUCTURE-CON_TYPE = 'JEX2'.
SRESULT = COMM_STRUCTUE-KNVAL.
ELSEIF COMM_STRUCTURE-CON_TYPE = 'ZK04'.
SRESULT = COMM_STRUCTUE-KNVAL.
ELSEIF COMM_STRUCTURE-CON_TYPE = 'ZK4A'.
SRESULT = COMM_STRUCTUE-KNVAL.
ELSEIF COMM_STRUCTURE-CON_TYPE = 'ZK07'.
SRESULT = COMM_STRUCTUE-KNVAL.
ELSEIF COMM_STRUCTURE-CON_TYPE = 'ZK7A'.
SRESULT = COMM_STRUCTUE-KNVAL.
ENDIF.
ENDIF.
Maybe you are looking for
-
I have an instance where I need 2 sender file adapters to send XI 2 different files (layouts are different). XI then needs to combine and map the messages from these two files into a single IDoc for each combined message. I know in a multi-mapping
-
Convert Numbers to Words in Check Printing
I am creating my own check template in SAPscript instead of a smartform simply because I did not want/find a driver program for a smartform. I am a little confused on how to perform ABAP function calls in SAPscript and need some help. I figure this
-
File Structure of WAS 2004s 6.0 in windows NT
Hi, i am new to sap NetWeaver ,can any one tell me what is the file structure of WAS 2004s 6.0 in windows NT Regards vijay
-
Primary Key Violation at the time of Moving from primary range to secondary range.
Hi Experts, I've observed a strange issue in our environment. we are using sql server 2008 R2 with SP2. whenever a table is moving from primary range to secondary range on it's identity values, application is getting crashed with the message as below
-
Free RoboHelp HTML Training!
Hi all I'm interested in finding someone that is totally new to RoboHelp to assist me with evaluating a new RoboHelp HTML curriculum I'm nearly finished developing. In return for helping me test it out and providing feedback, you will receive free tr