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

BAPI RFC and substitution exit

Former Member
0 Likes
840

Hello all!

I've developed a new substitution exit at OBBH named UFOR. This exit should be responsible for concatenating the vendor name (LFA1-NAME1) into the item text data for the BSEG records (BSEG-SGTXT) concerning that invoice.

The condition for these substitutions are:


BKPF-BLART = 'RE' AND BKPF-AWTYP = 'RMRP' AND
BKPF-TCODE = 'MIRO' AND BKPF-PPNAM = '' AND
BSEG-HKONT <> '212101' AND BKPF-BUKRS = '1000'

Problem is, the invoices are processed via BAPI, using the function BAPI_INCOMINGINVOICE_PARK via NetWeaver portal.

My doubt is: When this calling happens, the process will also execute the substitutions, or will just ignore them? The UFOR exit will be called?

Thanks in advance!

Regards.

Hello all!

I've developed a new substitution exit at OBBH named UFOR. This exit should be responsible for concatenating the vendor name (LFA1-NAME1) into the item text data for the BSEG records (BSEG-SGTXT) concerning that invoice.

The condition for these substitutions are:


BKPF-BLART = 'RE' AND BKPF-AWTYP = 'RMRP' AND
BKPF-TCODE = 'MIRO' AND BKPF-PPNAM = '' AND
BSEG-HKONT <> '212101' AND BKPF-BUKRS = '1000'

Problem is, the invoices are processed via BAPI, using the function BAPI_INCOMINGINVOICE_PARK via NetWeaver portal.

My doubt is: When this calling happens, the process will also execute the substitutions, or will just ignore them? The UFOR exit will be called?

Thanks in advance!

Regards.

3 REPLIES 3
Read only

Sm1tje
Active Contributor
0 Likes
689

normally all the user exits, badi's are called when using a BAPI.

Read only

Former Member
0 Likes
689

Thanks Micky....

And that works even for substitutions from OBBH?

I mean, in this particular case, one of the conditions is BKPF-TCODE = 'MIRO'. Won't this condition, or any of the others, restrict this substitution exit execution, as it will run via BAPI?

Read only

Sm1tje
Active Contributor
0 Likes
689

Good question, well I really wouldn't know. I haven't dealt with this sitiuation before, so can't say anything about it, except that in this case (with sy-tcode) my guess would be that it's not going to work via BAPI. The only way would be to test and find out. Good luck.