Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

hrforms syntax error

SagarSontakke
Active Participant
0 Likes
1,731

hi,

i am creating payslip through transaction <b>HRFORMS</b>.

i have created zform and designed layout but print report is giving me syntax error and not allow to generate the forms.any idea??

Name of forms <b>ZSVS_TSET</b>

error is

Generated print program contains a syntax error

Message no. HRFORMS011

Diagnosis

Generated print program <b>/1PYXXFO/ZSVS_TSET_1_PRNT</b> contains a syntax error in line 9 of include <b>/1PYXXFO/ZSVS_TSET_1_PAYR</b>.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,279

Please go to /1PYXXFO/ZSVS_TSET_1_PRNT in se38 and check the error.

7 REPLIES 7
Read only

Former Member
0 Likes
1,280

Please go to /1PYXXFO/ZSVS_TSET_1_PRNT in se38 and check the error.

Read only

0 Likes
1,279

hi vaishali,

Following selection screen parameters are not generated in my driver programe <b>/1PYXXFO/ZSVS_TSET_1_PRNT</b>.

<b>PARAMETERS p_ipview TYPE inperview no-display default 'X'.

PARAMETERS p_addret TYPE h99_add_retroes no-display default 'X'.

parameters p_simce type h99_simce no-display.</b>

These parameters are there in standard hrforms driver report.

I have tried to copy the standard hrforms to my z form but still these selection parameters are not getting generated and hence i am not able to genetare the form.

any idea.

I am working on ECC 5.0.Sending u the selection screen of both zforms as well as standard for.

z form selection screen.

*--------------------------------------------------------------------*
*-----------------------  selection screen --------------------------*
*--------------------------------------------------------------------*




*
SELECTION-SCREEN BEGIN OF BLOCK selother WITH FRAME TITLE text-002.
PARAMETERS:  p_nostat   TYPE hrf_nostat DEFAULT SPACE.
"display statistics y/n
PARAMETERS:  p_sfper TYPE hrf_sfper DEFAULT 'X'   USER-COMMAND sfpr
        modif id SFP.                "one form each employee y/n
PARAMETERS:  p_tooar TYPE hrf_tooar DEFAULT space USER-COMMAND oar,
                                     "optical archiving y/n
             p_plang TYPE hrf_plang DEFAULT space USER-COMMAND lang,
                                     "form in employee language y/n
             p_inftbe TYPE hrf_allinftrecords DEFAULT space
      modif id IBE. "only read IT records between BEGDA and ENDDA y/n
*hidden parameters for report calls from other applications
PARAMETERS:  p_popup    TYPE xfeld NO-DISPLAY DEFAULT 'X'.
"print popup switch on/off
SELECTION-SCREEN END OF BLOCK selother.

stndard form selection screen.

*--------------------------------------------------------------------*
*-----------------------  selection screen --------------------------*
*--------------------------------------------------------------------*

PARAMETERS p_ipview TYPE inperview no-display default 'X'.

PARAMETERS p_addret TYPE h99_add_retroes no-display default 'X'.

parameters p_simce type h99_simce no-display.

*
SELECTION-SCREEN BEGIN OF BLOCK selother WITH FRAME TITLE text-002.
PARAMETERS:  p_nostat   TYPE hrf_nostat DEFAULT SPACE.
"display statistics y/n
PARAMETERS:  p_sfper TYPE hrf_sfper DEFAULT 'X'   USER-COMMAND sfpr
        modif id SFP.                "one form each employee y/n
PARAMETERS:  p_tooar TYPE hrf_tooar DEFAULT space USER-COMMAND oar,
                                     "optical archiving y/n
             p_plang TYPE hrf_plang DEFAULT space USER-COMMAND lang.
"form in employee language y/n
*hidden parameters for report calls from other applications
PARAMETERS:  p_popup    TYPE xfeld NO-DISPLAY DEFAULT 'X'.
"print popup switch on/off
SELECTION-SCREEN END OF BLOCK selother.

Read only

0 Likes
1,279

Hi Sagar,

I´m trying to work with HRFORMS and I get the same problem. Please, if you have meet a solution, tell me it, because I´m absolutely lost.

Thx.

Xavi.

Read only

Former Member
0 Likes
1,279

Hi,

I've the same problem.

I found a solution with the SAP note:

878168 Hrforms: syntax error in print program

Reason and Prerequisites

The reason is an inconsistency between DDIC and DB, which appears with basis support patch SAPKB64011 and SAPKB70004.

Solution

You cannot fix this with an HR SP; use the database utility instead. Start transaction SE11 for view V_HRF_SELFIELDS and then go to Utilities -> Database Object -> Database Utility.

There is not correction instruction in tne note.

What can I do???

Manu

Message was edited by:

Thierry Dargent

Read only

Former Member
0 Likes
1,279

Hi,

I ´ve the same problem with the print program.

When I want to activate the HR FORM this error appear:

"Generated print program contains a syntax error" and I cannot activate it.

If anyone solve this problem, please tell me.....

Thanks

LEO

Read only

Former Member
1,279

I found out that the problem was in the field "Country Group". It depends on the customizing of your installation. I can only create HR Forms with the "gruop country" "01" (Germany)

byes

Read only

Former Member
0 Likes
1,279

Hi,

I am facing the same problem while activating the driver program.

Please let me know how to solve the problem.

I have opened a new thread for this.

Thank you,

Regards