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

Runtime Behavior in a Logical database

Former Member
0 Likes
469

Hi all,

I read this articl in SAP's help [http://help.sap.com/saphelp_nw70/helpdata/en/9f/db9bb935c111d1829f0000e829fbfe/frameset.htm] but I didn't know how to use these Subroutines:

FORM par_VAL.

FORM selop_VAL.

FORM selop-LOW_VAL.

FORM selop-HIGH_VAL.

I declared a

parameters p_kunnr like kna1-kunnr.

and I put this subroutine in the include where I put INIT, PBO and PAI subroutines


FORM p_kunnr_VAL.
break-point.
ENFORM.

But the system doesn't execute it!!

Can any one help me to understand why?

4 REPLIES 4
Read only

Former Member
0 Likes
442

Hi Noureddine,

I hope i understand what u are trying to do in your code. The system will not execute your code if it does not process into the subroutine.

You acn set the break-point just before the perform statement or just place the cursor on a command and press the session beakepoint Button on the toolbar.

give points if it this tip helps.

Read only

Former Member
0 Likes
442

What I want is to execute FROM p_kunnr_val subroutine when the user push the F4 button for the p_kunnr paramters, like FORM init, I just write

 FORM init.
ENDFORM. 

and the system calls it automatically in the INITIALIZATION logical database event

Read only

0 Likes
442

I believe that the online help is referring to the forms & events that will be invoked within the logical database code, not within your own code that references the LDB. For example, have a look at the PNP database (Tcode SLDB) and display the database program source code, and in include DBPNP_PNPCE_F4_FORMS you'll see pnporgeh-low_val, pnporgeh-high_val etc.

For your own fields that you define in addition to the ones "free" with the LDB, you should be able to just code the value help yourself e.g.


at selection-screen on value-request for p_parm1.
  perform f4_parm1.

form f4_parm1.
  message s398(00) with 'Reached my F4 help here'.
endform.

Jonathan

Read only

Former Member
0 Likes
442

Hi,

the solution was in declaration , I must put

PARAMETERS:     pkna1    LIKE kna1-kunnr FOR NODE tkna1 VALUE-REQUEST. 

instead of

PARAMETERS:     pkna1    LIKE kna1-kunnr FOR NODE tkna1. 

so, the thing I had to write is "VALUE-REQUEST"

thanks