Quantcast
Channel: SCN: Message List - ABAP Connectivity
Viewing all articles
Browse latest Browse all 3125

Re: Need USER-EXIT for the message type ORDRSP

$
0
0

HI Sumanth,

 

here are a couple of things you can try:

1) go Tcode NACE

2) select V1 as the application

3) click procedures, find the relevant procedure for your case, if its a sales order you might probably be using V10000 or any Z-versions of it. (the idea here is to find to which procedure your output type ZACK is attached)

4) when you find it, keep this screen aside for a moment and open a new session ,

5) go to tcode VOFM > Requirements > output control.

6) create a custom requirement number here. this generates an include program with 2 routines. e.g. if your requirement number is 901, then the routines would be KOBED_901 and KOBEV_901.

7) here access (SAPMV45A)XVBAK or (SAPMV45A)XVBAP[] and assign them to field symbols. this is just an example assuming that you have added your new fields in VBAK or VBAP or any other structure. So you now have the values which the user put when he was editing the Sales order in VA02 and has clicked save. Conversely also select the last saved values of these fields directly from VBAK and VBAP tables. then you can compare the current values of these fields and DB values to see if anything was changed. if not, then set sy-subrc = 4 in the routine. in such cases the output records ZACK will not be determined at all. if at all any of the values did change, then set sy-subrc to 0. this will allow the ZACK to be determined.

also execute the above code if KOMKBV1-VBELN is not initial(i.e. sales order is in change mode and its not VA01/creation mode). if this field is initial then straight sy-subrc = 0(because this will be the first ZACK on the SO).

8) activate the code in the routine. Run program RV80HGEN.

9) go back to NACE, and attach this requirement number against ZACK in the output procedure.

 

for coding idoc extensions in FM - IDOC_OUTPUT_ORDRSP, you can use user-exit EXIT_SAPLVEDC_003 or BADI sd_orderresponse_idoc_output_i method final_check.

 

best regards,

Nikhil Rao


Viewing all articles
Browse latest Browse all 3125

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>