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

Problem with commit flag with RH_PNNNN_MAINTAIN

Former Member
0 Likes
1,022

Hi,

i'm using RH_PNNNN_MAINTAIN in this way:

call function 'RH_PNNNN_MAINTAIN'

exporting

act_fcode = 'INSE'

act_otype = lw_plog-otype

act_objid = lw_plog-objid

act_infty = lw_plog-infty

act_subty = lw_plog-subty

act_begda = lw_plog-begda

act_endda = lw_plog-endda

act_pnnnn = lw_plog

suppress_dialog = '2'

act_vtask = 'S'

act_commit_flg = space

importing

act_ok_code = lw_ok_code

act_pnnnn_out = lw_plog

act_mess_info = lw_msg

tables

act_hrtnnnn = <lf_1xxx>

exceptions

infty_not_valid = 1

no_plvar = 2

object_not_defined = 3

otype_not_valid = 4

no_authority = 5

action_rejected = 6

no_gdate = 7

fcode_not_supported = 8

others = 9 .

act_commit_flg is initial...however, the record is written to the database, why?

Regards,

Rocco

3 REPLIES 3
Read only

former_member188827
Active Contributor
0 Likes
733

DATA: commit_flag TYPE hrrhap-commit_flg value ''.

use commit_flag as parameter instead of "space" and check.

Read only

Former Member
0 Likes
733

Hi, sorry for reopening an old post, but I have the same problem here. Did you find a solution to this?

Read only

0 Likes
733

Hi Jozef,

  I have find only a solution, use act_vtask = 'B' and  act_commit_flg = space for test, when i want to write the change I'm using act_vtask = 'D' and act_commit_flg = 'X'.

Regards,

Rocco