2007 Jan 18 6:32 PM
Hi,
call transaction 'ZTEST' using i_bdcdata
mode 'N'
messages into i_bdcmsgcoll.
This is the message displayed when the record is saved and evrything is right in my module pool
MESSAGE s004(zz) with 'Data is saved'.
This is what i'm having in my i_bdcmsgcoll for a correct record from above statment.
TCODE C 20 ZTEST
DYNAME C 40 SAPMZTEST
DYNUMB C 4 9003
MSGTYP C 1 S
MSGSPRA C 1 E
MSGID C 20 DH
MSGNR C 3 801
MSGV1 C 100
MSGV2 C 100
MSGV3 C 100
MSGV4 C 100
ENV C 4 CTU
FLDNAME C 132
Looking at this i cannot say the record has been uploaded succesfully
This is the message displayed when the record is saved and evrything is right in my module pool
Message i004(zz) with MATNR 'REASON : Data canot be saved'.
This is what i'm having in my i_bdcmsgcoll for a correct record from above statment.
TCODE C 20 ZTEST
DYNAME C 40 SAPMZTEST
DYNUMB C 4 9003
MSGTYP C 1 I
MSGSPRA C 1 E
MSGID C 20 ZZ
MSGNR C 3 004
MSGNR C 3 004
MSGV1 C 100 0005230931
MSGV2 C 100 rEASON :
MSGV3 C 100 Data canot be saved
MSGV4 C 100
ENV C 4 CTU
FLDNAME C 132
This looks right.and looking at that i can say that the record was rejected.
QUESTION
WHAT IS THE REASON FOR NOT GETTING DATA IN TO I_BDCMSGCOLL WHEN THE MESS TYPE IS S.
Thanks
2007 Jan 18 6:43 PM
Hi,
call transaction 'ZTEST' using i_bdcdata
mode 'N'
messages into i_bdcmsgcoll.
This is the message displayed when the record is saved and evrything is right in my module pool
MESSAGE s004(zz) with 'Data is saved'.
This is what i'm having in my i_bdcmsgcoll for a correct record from above statment.
TCODE C 20 ZTEST
DYNAME C 40 SAPMZTEST
DYNUMB C 4 9003
MSGTYP C 1 S
MSGSPRA C 1 E
MSGID C 20 DH
MSGNR C 3 801
MSGV1 C 100
MSGV2 C 100
MSGV3 C 100
MSGV4 C 100
ENV C 4 CTU
FLDNAME C 132
Looking at this i cannot say the record has been uploaded succesfully
This is the message displayed when the record is saved and evrything is right in my module pool
Message i004(zz) with MATNR 'REASON : Data canot be saved'.
This is what i'm having in my i_bdcmsgcoll for a correct record from above statment.
TCODE C 20 ZTEST
DYNAME C 40 SAPMZTEST
DYNUMB C 4 9003
MSGTYP C 1 I
MSGSPRA C 1 E
MSGID C 20 ZZ
MSGNR C 3 004
MSGNR C 3 004
MSGV1 C 100 0005230931
MSGV2 C 100 rEASON :
MSGV3 C 100 Data canot be saved
MSGV4 C 100
ENV C 4 CTU
FLDNAME C 132
This looks right.and looking at that i can say that the record was rejected.
QUESTION
WHAT IS THE REASON FOR NOT GETTING DATA IN TO I_BDCMSGCOLL WHEN THE MESS TYPE IS S.
Thanks
2007 Jan 18 6:43 PM
2007 Jan 18 6:47 PM
Hi Rich,
I have only one record because i tried one correct record and next time with one wrong record.
I have only one record in i_bdcmsgcoll and i have posted the contents as well in my previous post.
Thanks
let me know
2007 Jan 18 6:51 PM
2007 Jan 18 7:05 PM
Hi,
I executed the program in mode A.AND I HAD BREAK POINT IMMEDIATELY AFTER CALL TRANSACTION STATMENT.
mode A took me to all the steps in module pool screen and atlast i had ok_code save and it return to my upload program.it didnot displayed any message saying data saved in mode A.
CAN I JUST DECIDE AND PASS A MESS SAYING RECORD UPLOADED BASED ON SY-SUBRC BECAUSE FOR INCORRECT RECORD THE SY-SUBRC IS 1001 AFTER CALL TRANSACTION STATEMENT AND O FOR CORRECT STATMENT.
THANKS
2007 Jan 18 7:10 PM
<i>CAN I JUST DECIDE AND PASS A MESS SAYING RECORD UPLOADED BASED ON SY-SUBRC BECAUSE FOR INCORRECT RECORD THE SY-SUBRC IS 1001 AFTER CALL TRANSACTION STATEMENT AND O FOR CORRECT STATMENT.</i>
Yes, you can do that based on SY-SUBRC, but again I would have assumed that your success message would be coming as it does in other transactions done by BDC.
Regards,
Rich Heilman
2007 Jan 18 7:39 PM
2007 Jan 18 6:59 PM
Hi,
You can do like this.
Check the sy-subrc after the call transaction and manually build the bdcmsgcoll with the desired fields, whenever there is a success.
This way BDCMSGCOLL will have all the messages error or success or warning etc...
Regards
Subramanian
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |