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

Triggering output type using ABAP code

Former Member
0 Likes
2,923

Dear Friends,

I am trying to trigger an output type by submitting RSNAST00 with all the required input in one of my ABAP program and I am getting error messages. See the code which I have written below and help me to resolve this issue. Also, suggest me if we have any alternate methods to do it:

ranges: range_kappl for nast-kappl,

range_objky for nast-objky,

range_kschl for nase-kschl,

range_nacha for nast-nacha.

move: 'I' to range_objky-sign,

'EQ' to range_objky-option,

vttk-tknum to range_objky-low.

append range_objky.

move: 'I' to range_kappl-sign,

'EQ' to range_kappl-option,

'V7' to range_kappl-low.

append range_kappl.

move: 'I' to range_kschl-sign,

'EQ' to range_kschl-option,

'ZNM7' to range_kschl-low.

append range_kschl.

move: 'I' to range_nacha-sign,

'EQ' to range_nacha-option,

'2' to range_nacha-low.

append range_nacha.

submit rsnast00

with s_kappl in range_kappl

with s_objky in range_objky

with s_kschl in range_kschl

with s_nacha in range_nacha

and return.

Thanks & regards,

Mallikarjuna M

3 REPLIES 3
Read only

Rushikesh_Yeole
Contributor
0 Likes
1,170

hello,

Declare tables: VTTK statement for synatx error.

Why do not you select option for VTTK-TANUM.

FOr NAST-OBJKEY 10 lchar. should be passed.USe conversion exit if neede.

which error messages u r getting?

Read only

0 Likes
1,170

Use below subroutine.

Fill nast structure with whatever data you have.

PERFORM einzelnachricht_dialog(rsnast00) USING lv_rcode.

Advantages of using this are

1. If Output already exists and it waiting it will not submit new one.

2. You can control user name,date,time in nast entries.

Read only

0 Likes
1,170

Dear Sriram,

Many thanks for the needful.

Regards,

Mallikarjun.