ABAP codification
Hi all,
I'm working in the "MD-PErson key routine" and when i verifies it, the system will send the following message: u201CE:Statement "AND" is not defined. Check your spelling. spelling.
spelling. spelling.u201D I checked the parts of the routines where AND is appeared, but i didn't find any mistake..Could you help me?
thanks in advance,
the code:
ROGRAM UPDATE_ROUTINE.
$$ begin of global - insert your declaration only below this line -
TABLES: ...
DATA: ...
TYPES: BEGIN OF S_PYD1A,
EMPLOYEE TYPE /BIC/AHRPY_D0100-EMPLOYEE,
CALMONTH TYPE /BIC/AHRPY_D0100-CALMONTH,
END OF S_PYD1A.
TYPES: BEGIN OF S_PYD1B,
EMPLOYEE TYPE /BIC/AHRPY_D0100-EMPLOYEE,
CALMONTH TYPE /BIC/AHRPY_D0100-CALMONTH,
COUNTRY_ID TYPE /BIC/AHRPY_D0100-COUNTRY_ID,
WAGETYPE TYPE /BIC/AHRPY_D0100-WAGETYPE,
CURRENCY TYPE /BIC/AHRPY_D0100-CURRENCY,
AMOUNT TYPE /BIC/AHRPY_D0100-AMOUNT,
RTNUM TYPE /BIC/AHRPY_D0100-RTNUM,
END OF S_PYD1B.
DATA: T_PYD1A TYPE TABLE OF S_PYD1A WITH HEADER LINE.
DATA: T_PYD1B TYPE SORTED TABLE OF S_PYD1A WITH UNIQUE KEY EMPLOYEE
CALMONTH WITH HEADER LINE.
DATA: T_PYD1C TYPE SORTED TABLE OF S_PYD1B WITH UNIQUE KEY EMPLOYEE
CALMONTH COUNTRY_ID WAGETYPE WITH HEADER LINE.
DATA: V_EMP LIKE /BIC/AHRPY_D0100-EMPLOYEE.
DATA: V_EMP_I LIKE /BIC/AHRPY_D0100-EMPLOYEE.
DATA: V_EMP_F LIKE /BIC/AHRPY_D0100-EMPLOYEE.
DATA: V_MES LIKE /BIC/AHRPY_D0100-CALMONTH.
DATA: V_MES_I LIKE /BIC/AHRPY_D0100-CALMONTH.
DATA: V_MES_F LIKE /BIC/AHRPY_D0100-CALMONTH.
DATA: V_TEO TYPE I.
DATA: V_RTN TYPE /BIC/AHRPY_D0100-RTNUM.
TYPES: BEGIN OF S_EMP,
EMPLOYEE TYPE /BI0/MEMPLOYEE-EMPLOYEE,
DATETO TYPE /BI0/MEMPLOYEE-DATETO,
DATEFROM TYPE /BI0/MEMPLOYEE-DATEFROM,
CNTRCTTYPE TYPE /BI0/MEMPLOYEE-CNTRCTTYPE,
COMP_CODE TYPE /BI0/MEMPLOYEE-COMP_CODE,
CO_MST_AR TYPE /BI0/MEMPLOYEE-CO_MST_AR,
EMPLGROUP TYPE /BI0/MEMPLOYEE-EMPLGROUP,
EMPLSGROUP TYPE /BI0/MEMPLOYEE-EMPLSGROUP,
EMPLSTATUS TYPE /BI0/MEMPLOYEE-EMPLSTATUS,
ENTRYDATE TYPE /BI0/MEMPLOYEE-ENTRYDATE,
ESGFORCAP TYPE /BI0/MEMPLOYEE-ESGFORCAP,
HRPOSITION TYPE /BI0/MEMPLOYEE-HRPOSITION,
JOB TYPE /BI0/MEMPLOYEE-JOB,
MAST_CCTR TYPE /BI0/MEMPLOYEE-MAST_CCTR,
ORGUNIT TYPE /BI0/MEMPLOYEE-ORGUNIT,
PAYRL_AREA TYPE /BI0/MEMPLOYEE-PAYRL_AREA,
PAYSCALEAR TYPE /BI0/MEMPLOYEE-PAYSCALEAR,
PAYSCALEGR TYPE /BI0/MEMPLOYEE-PAYSCALEGR,
PAYSCALELV TYPE /BI0/MEMPLOYEE-PAYSCALELV,
PAYSCALETY TYPE /BI0/MEMPLOYEE-PAYSCALETY,
PERS_AREA TYPE /BI0/MEMPLOYEE-PERS_AREA,
PERS_SAREA TYPE /BI0/MEMPLOYEE-PERS_SAREA,
SALARYAR TYPE /BI0/MEMPLOYEE-SALARYAR,
SALARYGR TYPE /BI0/MEMPLOYEE-SALARYGR,
SALARYLV TYPE /BI0/MEMPLOYEE-SALARYLV,
SALARYTY TYPE /BI0/MEMPLOYEE-SALARYTY,
/BIC/HRIDCON TYPE /BI0/MEMPLOYEE-/BIC/HRIDCON,
END OF S_EMP.
DATA: T_EMP TYPE SORTED TABLE OF S_EMP WITH UNIQUE KEY EMPLOYEE DATETO
DATEFROM WITH HEADER LINE.
TYPES: BEGIN OF S_ANT,
EMPLOYEE TYPE /BI0/MEMPLOYEE-EMPLOYEE,
DATETO TYPE /BI0/MEMPLOYEE-DATETO,
DATEFROM TYPE /BI0/MEMPLOYEE-DATEFROM,
JOB TYPE /BI0/MEMPLOYEE-JOB,
ORGUNIT TYPE /BI0/MEMPLOYEE-ORGUNIT,
END OF S_ANT.
DATA: T_ANT_A TYPE TABLE OF S_ANT WITH HEADER LINE.
DATA: T_ANT_B TYPE TABLE OF S_ANT WITH HEADER LINE.
DATA: T_ANP TYPE SORTED TABLE OF S_ANT WITH UNIQUE KEY EMPLOYEE DATETO
DATEFROM WITH HEADER LINE.
DATA: T_ANC TYPE SORTED TABLE OF S_ANT WITH UNIQUE KEY EMPLOYEE DATETO
DATEFROM WITH HEADER LINE.
TYPES: BEGIN OF S_PER,
PERSON TYPE /BI0/MPERSON-PERSON,
DATETO TYPE /BI0/MPERSON-DATETO,
DATEFROM TYPE /BI0/MPERSON-DATEFROM,
CITY TYPE /BI0/MPERSON-CITY,
COUNTRY TYPE /BI0/MPERSON-COUNTRY,
DATEBIRTH TYPE /BI0/MPERSON-DATEBIRTH,
GENDER TYPE /BI0/MPERSON-GENDER,
NATION TYPE /BI0/MPERSON-NATION,
PERSLANGU TYPE /BI0/MPERSON-PERSLANGU,
POSTAL_CD TYPE /BI0/MPERSON-POSTAL_CD,
REGION TYPE /BI0/MPERSON-REGION,
END OF S_PER.
DATA: T_PER TYPE SORTED TABLE OF S_PER WITH UNIQUE KEY PERSON DATETO
DATEFROM WITH HEADER LINE.
TYPES: BEGIN OF S_PLD,
EMPLOYEE TYPE /BIC/AHRPD_D0100-EMPLOYEE,
/BIC/HR_B_PLDE TYPE /BIC/AHRPD_D0100-/BIC/HR_B_PLDE,
DATETO TYPE /BIC/AHRPD_D0100-DATETO,
DATEFROM TYPE /BIC/AHRPD_D0100-DATEFROM,
END OF S_PLD.
DATA: T_PLD TYPE SORTED TABLE OF S_PLD WITH UNIQUE KEY EMPLOYEE
/BIC/HR_B_PLDE DATETO DATEFROM WITH HEADER LINE.
TYPES: BEGIN OF S_ORG,
ORGUNIT TYPE /BI0/MORGUNIT-ORGUNIT,
DATETO TYPE /BI0/MORGUNIT-DATETO,
DATEFROM TYPE /BI0/MORGUNIT-DATEFROM,
/BIC/HRTIPCEN TYPE /BI0/MORGUNIT-/BIC/HRTIPCEN,
/BIC/HRSTIPCEN TYPE /BI0/MORGUNIT-/BIC/HRSTIPCEN,
COUNTRY TYPE /BI0/MORGUNIT-COUNTRY,
REGION TYPE /BI0/MORGUNIT-REGION,
/BIC/HRCATEGOR TYPE /BI0/MORGUNIT-/BIC/HRCATEGOR,
CITY TYPE /BI0/MORGUNIT-CITY,
/BIC/HR_SITUAC TYPE /BI0/MORGUNIT-/BIC/HR_SITUAC,
END OF S_ORG.
DATA: T_ORG TYPE SORTED TABLE OF S_ORG WITH UNIQUE KEY ORGUNIT DATETO
DATEFROM WITH HEADER LINE.
TYPES: BEGIN OF S_OR0,
/BIC/C_ORGUNIT TYPE /BIC/MC_ORGUNIT-/BIC/C_ORGUNIT,
DATETO TYPE /BIC/MC_ORGUNIT-DATETO,
DATEFROM TYPE /BIC/MC_ORGUNIT-DATEFROM,
/BIC/C_ORG_DT TYPE /BIC/MC_ORGUNIT-/BIC/C_ORG_DT,
/BIC/C_ORG_DG TYPE /BIC/MC_ORGUNIT-/BIC/C_ORG_DG,
/BIC/C_ORG_DAN TYPE /BIC/MC_ORGUNIT-/BIC/C_ORG_DAN,
END OF S_OR0.
DATA: T_OR0 TYPE SORTED TABLE OF S_OR0 WITH UNIQUE KEY /BIC/C_ORGUNIT
DATETO DATEFROM WITH HEADER LINE.
TYPES: BEGIN OF S_CC0,
COUNTRY_ID TYPE /BIC/MC_LGART_1-COUNTRY_ID,
/BIC/C_LGART_1 TYPE /BIC/MC_LGART_1-/BIC/C_LGART_1,
DATETO TYPE /BIC/MC_LGART_1-DATETO,
DATEFROM TYPE /BIC/MC_LGART_1-DATEFROM,
CHRT_ACCTS TYPE /BIC/MC_LGART_1-CHRT_ACCTS,
GL_ACCOUNT TYPE /BIC/MC_LGART_1-GL_ACCOUNT,
END OF S_CC0.
DATA: T_CC0 TYPE SORTED TABLE OF S_CC0 WITH UNIQUE KEY COUNTRY_ID
/BIC/C_LGART_1 DATETO DATEFROM WITH HEADER LINE.
DATA V_DA0_I TYPE RSCALDAY.
DATA V_DA0_F TYPE RSCALDAY.
DATA V_ORG_I LIKE /BI0/MORGUNIT-ORGUNIT.
DATA V_ORG_F LIKE /BI0/MORGUNIT-ORGUNIT.
DATA V_ORG LIKE /BI0/MORGUNIT-ORGUNIT.
DATA V_EMP_DF TYPE RSCALDAY.
DATA V_PLD_DF TYPE RSCALDAY.
DATA V_PER_DF TYPE RSCALDAY.
DATA V_ORG_DF TYPE RSCALDAY.
DATA V_OR0_DF TYPE RSCALDAY.
DATA V_AGE_DF TYPE RSCALDAY.
DATA V_VAL_DF TYPE RSCALDAY.
DATA V_AGE TYPE I.
DATA V_AGE_R TYPE I.
DATA V_ANE TYPE I.
DATA V_ANP TYPE I.
DATA V_ANC TYPE I.
$$ end of global - insert your declaration only before this line -
FORM compute_key_field
TABLES MONITOR STRUCTURE RSMONITOR "user defined monitoring
USING COMM_STRUCTURE LIKE /BIC/CS8HRPY_D02
RECORD_NO LIKE SY-TABIX
RECORD_ALL LIKE SY-TABIX
SOURCE_SYSTEM LIKE RSUPDSIMULH-LOGSYS
CHANGING RESULT LIKE /BIC/VHRPY_C01T-GENDER
RETURNCODE LIKE SY-SUBRC
ABORT LIKE SY-SUBRC. "set ABORT <> 0 to cancel update
$$ begin of routine - insert your code only below this line -
fill the internal table "MONITOR", to make monitor entries
IF V_EMP IS INITIAL OR V_EMP NE COMM_STRUCTURE-EMPLOYEE.
V_EMP = COMM_STRUCTURE-EMPLOYEE.
CLEAR V_EMP_DF.
CLEAR V_PER_DF.
CLEAR V_PLD_DF.
CLEAR V_AGE_DF.
CLEAR V_AGE.
CLEAR V_AGE_R.
CLEAR V_VAL_DF.
CLEAR V_ANE.
CLEAR V_ANP.
CLEAR V_ANC.
ENDIF.
IF V_ORG IS INITIAL OR V_ORG NE T_EMP-ORGUNIT.
V_ORG = T_EMP-ORGUNIT.
CLEAR V_ORG_DF.
CLEAR V_OR0_DF.
ENDIF.
IF V_EMP_DF LT '18000101'.
CLEAR T_EMP.
LOOP AT T_EMP WHERE EMPLOYEE = COMM_STRUCTURE-EMPLOYEE AND
DATETO GE '18000101'
AND DATEFROM LE '18000101'.
V_EMP_DF = T_PER-DATETO.
EXIT.
ENDLOOP.
ENDIF.
IF V_VAL_DF NE '18000101'.
V_VAL_DF = '18000101'.
IF T_EMP-ENTRYDATE IS NOT INITIAL.
CALL FUNCTION 'FIMA_DAYS_AND_MONTHS_AND_YEARS'
EXPORTING I_DATE_FROM = T_EMP-ENTRYDATE I_DATE_TO = V_VAL_DF
"I_FLG_SEPARATE = ' '
IMPORTING E_DAYS = V_ANE.
"E_MONTHS = L_MONTHS. E_YEARS = EYEARS.
ENDIF.
CLEAR T_ANP.
LOOP AT T_ANP WHERE EMPLOYEE = COMM_STRUCTURE-EMPLOYEE AND
DATEFROM LE '18000101'AND
JOB = '18000101'.
ENDLOOP.
IF T_ANP-DATEFROM IS NOT INITIAL.
CALL FUNCTION 'FIMA_DAYS_AND_MONTHS_AND_YEARS'
EXPORTING I_DATE_FROM = T_ANP-DATEFROM I_DATE_TO = V_VAL_DF
"I_FLG_SEPARATE = ' '
IMPORTING E_DAYS = V_ANP.
"E_MONTHS = L_MONTHS. E_YEARS = EYEARS.
ENDIF.
CLEAR T_ANC.
LOOP AT T_ANC WHERE EMPLOYEE = COMM_STRUCTURE-EMPLOYEE AND
DATEFROM LE '18000101' AND
ORGUNIT = T_EMP-ORGUNIT.
ENDLOOP.
IF T_ANC-DATEFROM IS NOT INITIAL.
CALL FUNCTION 'FIMA_DAYS_AND_MONTHS_AND_YEARS'
EXPORTING I_DATE_FROM = T_ANC-DATEFROM I_DATE_TO = V_VAL_DF
"I_FLG_SEPARATE = ' '
IMPORTING E_DAYS = V_ANC.
"E_MONTHS = L_MONTHS. E_YEARS = EYEARS.
ENDIF.
ENDIF.
IF V_PER_DF LT '18000101'.
CLEAR T_PER.
LOOP AT T_PER WHERE PERSON = COMM_STRUCTURE-EMPLOYEE AND
DATETO GE '18000101' AND
DATEFROM LE '18000101'.
V_PER_DF = T_PER-DATETO.
EXIT.
ENDLOOP.
ENDIF.
IF V_PLD_DF LT '18000101'.
CLEAR T_PLD.
LOOP AT T_PLD WHERE EMPLOYEE = COMM_STRUCTURE-EMPLOYEE AND
DATETO GE '18000101' AND
DATEFROM LE '18000101'.
V_PLD_DF = T_PER-DATETO.
EXIT.
ENDLOOP.
ENDIF.
IF V_ORG_DF LT '18000101'.
CLEAR T_ORG.
LOOP AT T_ORG WHERE ORGUNIT = T_EMP-ORGUNIT AND
DATETO GE '18000101' AND
DATEFROM LE '18000101'.
V_ORG_DF = T_ORG-DATETO.
EXIT.
ENDLOOP.
ENDIF.
IF V_OR0_DF LT '18000101'.
CLEAR T_OR0.
LOOP AT T_OR0 WHERE /BIC/C_ORGUNIT = T_EMP-ORGUNIT AND
DATETO GE '18000101' AND
DATEFROM LE '18000101'.
V_OR0_DF = T_OR0-DATETO.
EXIT.
ENDLOOP.
ENDIF.
CLEAR T_CC0.
LOOP AT T_CC0 WHERE COUNTRY_ID = COMM_STRUCTURE-COUNTRY_ID
AND /BIC/C_LGART_1 = COMM_STRUCTURE-WAGETYPE
AND DATETO GE '18000101'.
AND DATEFROM LE '18000101'.
EXIT.
ENDLOOP.
IF V_AGE_DF LT '18000101'AND T_PER-DATEBIRTH IS NOT INITIAL
" Calculamos edad y lo guardamos en variable para reuso posterior.
V_AGE = '18000101'0(4) - T_PER-DATEBIRTH0(4).
CONCATENATE '18000101'0(4) T_PER-DATEBIRTH4(4) INTO
V_AGE_DF.
IF '18000101'4(4) LT T_PER-DATEBIRTH4(4).
V_AGE = V_AGE - 1.
SUBTRACT 1 FROM V_AGE_DF.
ELSE.
ADD 364 TO V_AGE_DF.
ENDIF.
IF V_AGE LT 25. V_AGE_R = 1.
ELSEIF V_AGE LT 30. V_AGE_R = 2.
ELSEIF V_AGE LT 35. V_AGE_R = 3.
ELSEIF V_AGE LT 40. V_AGE_R = 4.
ELSEIF V_AGE LT 45. V_AGE_R = 5.
ELSEIF V_AGE LT 50. V_AGE_R = 6.
ELSEIF V_AGE LT 55. V_AGE_R = 7.
ELSEIF V_AGE LT 60. V_AGE_R = 8.
ELSE. V_AGE_R = 9.
ENDIF.
ENDIF.
result value of the routine
RESULT = T_PER-GENDER.
$$ end of routine - insert your code only before this line -
Hi,
at loop condition, instead of AND at the end of loop statement,
LOOP AT T_PLD WHERE EMPLOYEE = COMM_STRUCTURE-EMPLOYEE
if this condition is true then only pointer will go down right.
i think here AND is not required. try this.
CLEAR T_PLD.
LOOP AT T_PLD WHERE EMPLOYEE = COMM_STRUCTURE-EMPLOYEE -AND-
DATETO GE '18000101' AND
DATEFROM LE '18000101'.
V_PLD_DF = T_PER-DATETO.
look this also DATEFROM LE '18000101'AND
with out space.
regards
Daya Sagar
Edited by: Daya Sagar on Sep 18, 2008 7:16 PM
Similar Messages
-
Issue in Creation of XML file from ABAP data
Hi,
I need to create a XML file, but am not facing some issues in creation of XML file, the in the required format.
The required format is
-<Header1 1st field= u201CValueu201D 2nd field= u201CValueu201D>
- <Header2 1st field= u201CValueu201D 2nd field= u201CValueu201Du2026u2026. Upto 10 fields>
<Header3 1st field= u201CValueu201D 2nd field= u201CValueu201Du2026u2026. Upto 6 fields/>
<Header4 1st field= u201CValueu201D 2nd field= u201CValueu201Du2026u2026. Upto 4 fields/.>
<Header5 1st field= u201CValueu201D 2nd field= u201CValueu201Du2026u2026. Upto 6 fields/>
</Header2>
</Header1>
Iu2019m using the call transformation to convert ABAP data to XML file.
So please anybody can help how to define XML structure in transaction XSLT_TOOL.
And one more thing, here I need to put the condition to display the Header 3, Header 4, Header 5 values. If there is no record for a particular line item in header 3, 4 & 5, I donu2019t want to display full line items; this is only for Header 3, 4 & 5.
Please help me in this to get it resolved.Hello,
you can use CALL TRANSFORMATION id, which will create a exact "print" of the ABAP data into the XML.
If you need to change the structure of XML, you can alter your ABAP structure to match the requirements.
Of course you can create your own XSLT but that is not that easy to describe and nobody will do that for you around here. If you would like to start with XSLT, you´d better start the search.
Regards Otto -
Logical command in ABAP.....Urgent
Hi,
i am pretty new using ABAP program so i neeed help urgently. i am trying to move a file on the application server from one directory to the other and i was using the open dataset function to do that. but the file i am trying to move is pretty big and because i am using internal table to store, it is causing problems with the space.
i have consulted the basis guys and they have managed to create a logical file for copying from one directory to the other on the application server. to help you furthter. i am enclosing the mail sent to me.
I have created a logical command which should copy the file from one location to the other but you need to pass it the source dir and file name and the destination dir and file name.
The logical command is ZCOPY and uses cmd /c copy
Copies one or more files to another location.
COPY [/V] [/N] [/Y | /-Y] [/Z] [/A | /B ] source [/A | /B]
[+ source [/A | /B] [+ ...]] [destination [/A | /B]]
source Specifies the file or files to be copied.
/A Indicates an ASCII text file.
/B Indicates a binary file.
destination Specifies the directory and/or filename for the new file(s).
/V Verifies that new files are written correctly.
/N Uses short filename, if available, when copying a file with a
non-8dot3 name.
/Y Suppresses prompting to confirm you want to overwrite an
existing destination file.
/-Y Causes prompting to confirm you want to overwrite an
existing destination file.
/Z Copies networked files in restartable mode.
The switch /Y may be preset in the COPYCMD environment variable.
This may be overridden with /-Y on the command line. Default is
to prompt on overwrites unless COPY command is being executed from
within a batch script.
the problem now is i have no idea about how to use the logical command. can any one help me.
Thank you,
Ravi.If memory is not an issue, then there should be no reason why this should not work.
report zrich_0001.
parameters: d1 type localfile default '/usr/sap/TST/SYS/Data1.txt',
d2 type localfile default '/usr/sap/TST/SYS/Data2.txt'.
data: itab type table of string with header line.
start-of-selection.
* Read old file
open dataset d1 for input in text mode.
if sy-subrc = 0.
do.
read dataset d1 into itab.
if sy-subrc <> 0.
exit.
endif.
append itab.
enddo.
endif.
close dataset d1.
* Write to new file
open dataset d2 for output in text mode.
loop at itab.
transfer itab to d2.
endloop.
close dataset d2.
* Delete the old file
delete dataset d1.
Regards,
Rich Heilman -
Logical Database in Abap Objects
Hi to All
I want do it a program report using a Logical Database.
Is this possible ??? But when I make a GET <node>, occurs the following error:
"" Statement "ENDMETHOD" missing. ""
I'm doing the following:
CLASS MONFIN IMPLEMENTATION.
METHOD TRAER_DATOS.
GET VBRK.
ENDMETHOD.
ENDCLASS.
Please, somebody tell me how I use the logical database in Abap Objects.
Thank you very much
Regards
Dario R.Hi there
Logical databases whilst of "some use" are not really part of OO.
If you want to use a logical database in an abap OO program I would create a special class which just does the get data from your DB and pass this either at record or table level.
Techniques such as GET XXXX LATE aren't really part of any OO type of application since at Object Instantiation time you should be able to access ALL the attributes of that object.
As far as OO is concerned Logical databases are a throwback to "Dinosaur Technology".
Since however modules such as SD and FI are still heavily reliant on relational structures (i.e linked tables etc) then there is still some limited life in this stuff but for OO try and solve it by another method.
If you really must use this stuff in OO then do it via a FMOD call and save the data in a table which your method will pass back to your application program.
You can't issue a GET command directly in a method.
Cheers
Jimbo -
LOGICAL DATABASE IN HR ABAP PRPGRAMMING
Hi Friends,
what is use of LOGICAL DATABASE IN HR ABAP PROGRAMMING
AND END-OF-SELECTION EVENT IN HR PROGRAMMING PROGRAMMING???
regards,
vijay.hi
HR Logical Databases
In Human Resources (HR), the following logical databases can be used as a data source for HR InfoSets:
PNP (PNPCE)
PAP
PCH
By selecting a logical database, you determine the HR data that can be reported on using an InfoSet.
Logical Database PCH
This logical database generally enables you to report on all HR infotypes. However, you are advised not to use this logical database unless you want to report on Personnel Planning data.
Logical Database PNP (or PNPCE)
Use logical database PNP to report on HR master data. It is possible to use logical database PCH to access this data, but PNP meets such reporting requirements more quickly because it is best suited to the task of selecting persons.
Logical database PNP enables you to access HR master data and infotypes from Personnel Planning. For example, you have the following options:
Reporting on the costs, number of attendees booked, and instructor for a business event on which an employee is booked
Reporting on working time and planned compensation for a position that an employee occupies
Reporting on the validity and proficiency of a qualification that an employee fulfils
From a technical perspective, this means you can use PNP to report on all of the infotypes that exist for objects (infotype 1000) that have a direct relationship (infotype 1001) with the Person object.
The ability to access infotypes from Personnel Planning using logical database PNP is a special feature that you can only use in the context of SAP Query and Ad Hoc Query. You cannot use this functionality for ABAP reports you programmed yourself.
You can also use logical database PNP to report on data from Personnel Time Management (infotypes 2000 to 2999) and Payroll (special payroll infotypes for the USA and customer infotypes; for more information, access Customizing for the Human Resources Information System and see Payroll Results).
Logical Database PAP
Logical database PAP enables you to access data from Recruitment.
regards
navjot
reward if helpfull -
Dear SDN,
In an integration scenario we are using sender File Adapter and a ABAP XSLT Mapping.
Is there any way to get the source FileName from such mapping. Im trying to use the adapter-specific message attributes, but it doesn't work, and I didn´t find an example, probably I and doing somthing wrong.
regards,
GPThank you for your help,
I just try to access the adapter-specific attibutes using:
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:key="java:com.sap.aii.mapping.api.DynamicConfigurationKey">
<xsl:variable name="filename" select="key:create('http://sap.com/xi/XI/System/File', 'Directory')" />
</xsl:stylesheet>
but the following error raised:
<SAP:Stack>Error while calling mapping program YXSLT_TEST (type Abap-XSLT, kernel error ID CX_XSLT_RUNTIME_ERROR) Call of unknown function</SAP:Stack>
have you had this situation? -
ABAP-- diff between sy-sy-tabix and sy-index
Hi Guru's,
Pleae can anybody expalins me what is the difference between sy-tabix and sy-index(Loop Index) ?
Because in one case i am Modifyimg the internal table inside the do loop by giving sy-index ((Index of Internal Tables)(MODIFY scarr_tab INDEX sy-index FROM scarr_wa TRANSPORTING currcode. ) in the syntax and in other case inside loop statement i am modifyng same record by giving sy-tabix MODIFY scarr_tab INDEX sy-tabix FROM scarr_wa TRANSPORTING currcode.) in the syntax.
in both cases its working fine but i am not getting which one i have to use where to modify the internal table?
regards
SATYAHi Henry,
SY-INDEX is the value of the current iteration. It is applicable for the following programming constructs in ABAP -
DO...ENDDO.
WHILE...ENDWHILE.
SY-TABIX (TABle IndeX) is applicable to internal tables. If you scroll down in the link which Eddie has given, you will find a more detailed explanation for sy-tabix and which statements affect its value.
Regards,
Anand Mandalika. -
Comas(,) are not getting displayed in the output while using OO ABAP
Hi All,
I am using ABAP objects to display the ALV report in which there is a requirement to output Quantity fields. The Quantity fields are getting displayed without comas ','. Please help me in getting back the comas in the output.
Eg:
Below logic is used in my program.
Class name: cl_salv_form_layout_grid
Code:
obj_footer->create_text(
row = v_row_cnt
column = v_col_cnt
text = Quantity).
Expected output:
39,545.000
Current Output:
39545.000
Thanks in advance for your help.
Thanks & Regards,
Siva.Hi,
Please check if the images are in the server and in the /images alias path.
thanks,
Sharmila -
Hi All,
I like to know, is it NULL and Space value is same in ABAP, if it is not how to check null value.
Thank you.
Senthileverything is correct though some answers are not correct.
A Database NULL value represents a field that has never been stored to database - this saving space, potentially.
Usually all SAP tables are stored with all fields, empty fields are stored with their initial value.
But: If a new table append is created and the newly-added fields do not have the 'initial value' marked in table definition, Oracle will just set NULL values for them.
as mentioned: There is no NULL value to be stored in an ABAP field. The IS NULL comparison is valid only for WHERE clause in SELECT statement. WHERE field = space is different from WHERE field IS NULL. That's why you should check for both specially for appended table fields.
If a record is selected (fulfilling another WHERE condition) into an internal table or work area, NULL values are convertted to their initial values anyway.
Hope that sheds some light on the subject!
regards,
Clemens -
Sale order before the regeneration of ABAP report: RSM13000
Hi there,
I am just wondering about something.
After we installed support packages, users could not get any sales order without to get any error message and I we could only see an error message via SM21 which says:
Run-time error "LOAD_TYPEPOOL_VERSION_MISMATCH" occurred.
So after we regenerated the ABAP report: RSM13000 after that everythings seems to be ok.
Now the question is: When we try to find the order numbers which the users created before the regeneration we find nothing.
What about this numbers? Did they have not been created at all or what hapened? They customer is asking now.
Thanks in advance
HanseatikI still do not know. We created them again
-
Report J_1IEWT_CERT getting cancelled, generating ABAP dump!
A long running report J_1IEWT_CERT in background mode is getting cancelled after running for a while and generating the following dump :
Error analysis
When changing or deleting one or more lines of the internal table
"\PROGRAM=J_1IEWT_CERT\DATA=PRINTTAB[]" or when inserting in the table
"\PROGRAM=J_1IEWT_CERT\DATA=PRINTTAB[]", 0 was used as
the line index. An index less than or equal to zero is not
allowed.
The error can occur when using the following options:
1. "INDEX idx" for specifying the line number in the table
"\PROGRAM=J_1IEWT_CERT\DATA=PRINTTAB[]"
where you want to change, insert or delete.
2. "FROM idx" for specifying the start index when deleting a line
area from or inserting a line area into the table
"\PROGRAM=J_1IEWT_CERT\DATA=PRINTTAB[]".
3. "TO idx" for specifying the end index when deleting a line
area from or inserting a line area into the table
"\PROGRAM=J_1IEWT_CERT\DATA=PRINTTAB[]".
At the time of the termination, the table contained 17008 lines.
How to correct the error
If the error occurred in your own ABAP program or in an SAP
program you modified, try to remove the error.
If the error occures in a non-modified SAP program, you may be able to
find an interim solution in an SAP Note.
If you have access to SAP Notes, carry out a search with the following
keywords:
"TABLE_INVALID_INDEX" " "
"J_1IEWT_CERT" or "J_1IEWT_CERT_F01"
"FILTER_DATA"
If you cannot solve the problem yourself and want to send an error
notification to SAP, include the following information:
1. The description of the current problem (short dump)
To save the description, choose "System->List->Save->Local File
(Unconverted)".
2. Corresponding system log
Display the system log by calling transaction SM21.
Restrict the time interval to 10 minutes before and five minutes
after the short dump. Then choose "System->List->Save->Local File
(Unconverted)".
3. If the problem occurs in a problem of your own or a modified SAP
program: The source code of the program
In the editor, choose "Utilities->More
Utilities->Upload/Download->Download".
Tried searching for some SAP Notes to fix the issue, no success as of now, Please help me out...Have you checked these notes ?
363107 Short dump occurs during TDS certificate printing.
803806 Error while genrating TDS certificate 03.01.2005
1066049 J1INCERT - Error while generating TDS certificate
Regards,
Subhash -
Debugging is not working in R/3 from WebDynpro-ABAP developed webpage input
Dear Friends,
We are facing a serious problem for debugging. Expecting valuable input for the same.
Debugging is not working in R/3 from WebDynpro-ABAP developed webpage input in Production Server.
The debugging (for WebDynpro-ABAP application) is working in Dev. Server for
1st ] Within R/3
Ex. debug for bapi within R/3. i.e. value enter as input in R/3 only.
2nd ] From webpage to R/3
Ex. Some input given on the internet web page developed through WebDynpro and external breakpoint set in R/3 it works. It directs to R/3 code through debugging.
In Prod. Server the 1st case above is working but the 2nd case is not working.
In Prod. Server the WebDynpro developed applications are running successfully through internet explorer webpage inputs. So running the application is not a problem in prod. Server but debugging of the same is the problem.
The setting which are done in Prod. server are,
1] RZ10 in parameters are set for port and host name.
2.1] In SMICM check for ICM.
2.2] Host file updated in Windows-System 32.
3] In SICF following services are active,
3.1] default_host/sap/bc/webdynpro
3.2] default_host/sap/public/bc
3.3] default_host/sap/public/bc/webdynpro/viewdesigner
3.4] default_host/sap/bc/wdvd
3.5] default_host/sap/public/icman
3.6] default_host/sap/bc/gui/sap/its/webgui
3.7] default_host/sap/public/ping
3.8] default_host/sap/bc/error
3.9] default_host/sap/bc/echo
4] In SE80
4.1] Internet services-System-are published
4.2] Internet services-WEBGUI-are published
4.3] Utilities-Setting-ABAP Editor-Debugging-Username & New Debugger set.
4.4] Utilities-Setting-ABAP Editor-Editor-Front-End Editor(New) set.
5] In Su01 for user profiles sap_all & sap_new is assigned and role SAP_BC_WEBSERVICE_DEBUGGER is assigned.
6] The support packages are also updated to latest level.
7] Gone through following links but not getting any clues.
http://help.sap.com/saphelp_nw70ehp1/helpdata/en/48/74d50bd1431b5ae10000000a42189c/frameset.htm
http://help.sap.com/saphelp_nw04s/helpdata/EN/77/3545415ea6f523e10000000a155106/frameset.htm
Thanks in Advance.
Best Regards,
Abhijit.No cross posting
Read the "Rules of Engagament"
Regards
Juan -
Hi experts,
Here are some questions for u pls send answers asap.
1. What are the exceptions in function module?
2. What is Return code?
3. What are the interface programs we have?
4. What is the typical structure of ABAP/4 Program?
5. How can we make the user to get satisfaction while developing the code?
6. What is production order report?
7. Generally What are the objects we have to develop in end to end full life cycle implementation project w. r. to SD and MM functional modules?
8. How can u find a required exit , include and form routines in an user exit ?
9. What is the difference between SMOD and CMOD ?
10. What is the difference between AT NEW and ON CHANGE OF ?
11. We have two fields Customer and Batch in selection screen. If we select Batch field down arrow button( for F4 help) we will get a popup with possible values.
To get that What code we have to write and where?
12. Explain SD Flow?
13. Can we only process synchronously in CALL Tr. Cant we process in asynchronous? Actually What is processing?
14. Can we use only one application at a time in CALL Tr. ?
15. If we have a data in integer and numeric format in flat file , is it possible to upload data or not ? if yes how?
16. Technical specs preparation comes under blueprint phase or Realization phase?
17. In which phase a developer can work ?
18. While handling a Tabstrip Report, Where we have to maintain selection screen of each tabstrip report? Wheather it is in source code or in screen painter? Explain in detail with one tabstrip report which is having different tabs in selection screen?
19. In which event we have to write SET CURSOR FIELD logic in a report?
20. How can u add different tabs in a report?
21. Hoe can u handle a tabstrip in areport?
22. Explain Cluster and Pooled Tables with definitions and what is the advantage of cluster and pooled tables?
23. What is the structure of VIEW?
24. How we provide F4 help in DDIC? What are steps (Navigation)?
25. What is primary key and foreign key. What they will do?Did you get the job then? :o)
Kind regards
Ash Thomas
<a href=http://www.ashthomas.com>Sap Abap Developer & Sap Abap Programmer</a>
<a href=http://www.ashthomas.com>www.ashthomas.com</a> -
Hi folks,
I am getting abap display for my report which is also required as hard cpoy when I fire a printout for the same. But I need to increase the font size of the report. How can I achieve thisHI.
Go to Cutomize local layout (Right most icon from menu bar).
go to Option
go to Graphic
Change font here.
Regards.
jay -
IE Script error when double clicking on a view in Abap Webdynpro component
Hello experts,
I am running mini SAP trial version 2004 with Internet explorer 7.0 and also installed gui patch 23.
I am making a sample application in SE80 and when double clicking on a view in Abap Webdynpro component I get following error:
<b>Internet Explorer Script Error</b>
An error has occured in the script on this page.
Line: 1
Char: 1
Error: 'wdp_show_menu' is undefined
Code: 0
URL: http://satellite5200:8000/sap/bc/wdvd/painting.html?_vdrespkey=EOJ6V1JQMX0VLTQ7AP6DQM64Y&_vdframe=painting&sap-client=000
Do you want to continue running scripts on this page?
Thanks in advance.
BhupendraHi Bhupendra,
If you are seeing this error in the Se 80 editor , i guess you can ignoire that ...While running the application it will not show any error.
Thanks
Anzy
Maybe you are looking for
-
Mavericks 10.9.3 Blue Screen on start up and system unstable
I wonder if anyone is experiencing the same issue. After the last Safari update that I think was May 22nd 2014, My MBPro has been unstable. When booting up there is a brief dark blue screen with white Apple logo or occasionally a light blue screen wi
-
Calling Remote function tool leads always to a logon screen
Hello, I run an remote function tool in system A. In System B I run a report calling this function module. Each time, I execute the report, a remote logon screen appears. It looks the same like the one you logon the system. You have to specifiy clien
-
Hi, I'm creating a J2ee application using various EJB's and at least one WAR, all inside one single EAR file. This app. is to be intalled at different clients. I'd like to be able to specify different properties ( server used, remote host addresses,
-
Automating Rendering of XML Input
I have written a few scripts to generate the correct XML file representing everything I want the final output to contain. Now I want to automate the process of rendering these input files. I was expecting Compressor to just take the XML as input, but
-
My client wants to do resorting and after each resorting of product, client wants to capture cost involved for resorting of that particular material. For this I will raise a quality notification and thru notification I will create a QM order also. Co