2011 Jul 06 7:04 AM
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
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?
2011 Jul 06 7:11 AM
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?
2011 Jul 06 7:45 PM
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.
2011 Aug 04 5:42 PM
Dear Sriram,
Many thanks for the needful.
Regards,
Mallikarjun.
| User | Count |
|---|---|
| 6 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |