As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.
Join the TIBCO Community TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.
From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
Request access to the private WebFOCUS User Group (login required) to network with fellow members.
Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.
We have a table ZAPPTHDR that needs to be joined to a Function Modul(SAP)- Z_APPT_BACKORDER_BY_ID_PLANT which has input parameters:IN_APPT_ID and IN_PLANT.
Here is a code we use and after many tries keep getting the error "(SAP/R3 ERROR EXECUTING ABAP4 PROGRAM : T_BACKORDER_BY_ID_PLANT"
TABLE FILE ZAPPTHDR PRINT APPT_STAT APPT_ID PLANT WHERE PLANT IS 'B03' WHERE APPT_ID IS '0000079272' WHERE APPT_STAT IN ('PENDING'); WHERE DROPPED_STATUS IS ('ARRIVED'); ON TABLE HOLD AS ZAPPTHDR1 END -* JOIN APPT_ID AND PLANT IN ZAPPTHDR1 TO IN_APPT_ID AND IN_PLANT IN Z_APPT_BACKORDER_BY_ID_PLANT AS J1 END -* TABLE FILE ZAPPTHDR1 PRINT IN_APPT_ID IN_PLANT BACK_ORD_AMT END -* Result of ZAPPTHDR1 is one record,
If you click on the Advanced Search link at the top of the forum page and search for "SAP/R3 ERROR EXECUTING ABAP4 PROGRAM" you will find a number of entries, one of which might solve your problem.
WebFOCUS 7.7.05
Posts: 1213 | Location: Seattle, Washington - USA | Registered: October 22, 2007
My two cents: It might also be that multifield join is actually not supported when joining from fix file to sap file. Try to do a join on one field and have a where on the other field in your table body. Example:
JOIN APPT_ID IN ZAPPTHDR1 TO IN_APPT_ID IN Z_APPT_BACKORDER_BY_ID_PLANT AS J1
-*
TABLE FILE ZAPPTHDR1
PRINT IN_APPT_ID
IN_PLANT
BACK_ORD_AMT
WHERE PLANT EQ IN_PLANT;
END
See if it works ...
GamP
- Using AS 8.2.01 on Windows 10 - IE11.
in Focus since 1988
Posts: 1961 | Location: Netherlands | Registered: September 25, 2007
Thank you to all of you~ I understand the problem was in FM : FUNCTION Z_APPT_BACKORDER_BY_ID_PLANT . *"---------------------------------------------------------------------- *"*"Local Interface: *" IMPORTING *" VALUE(IN_APPT_ID) LIKE ZBAPI_APPTHDR-APPT_ID *" VALUE(IN_PLANT) LIKE ZBAPI_APPTHDR-PLANT *" EXPORTING *" VALUE(OUT_APPT_ID) LIKE ZBAPI_APPTHDR-APPT_ID *" VALUE(OUT_PLANT) LIKE ZBAPI_APPTHDR-PLANT *" VALUE(BACK_ORD_AMT) LIKE ZBAPI_APPTHDR-BO_AMT *" TABLES *" OUT_RETURN STRUCTURE BAPIRET2 *"----------------------------------------------
Everywhere you see 'LIKE' it was 'TYPE'. So now Type has been replaced with 'Like' and joint is working. Im so far from that issue to understand, but those who creates SAP Funcion Mod they found this and changed that. Thank you Lera
Valeriya
WebFOCUS 764 Servlet - MRE/Dashboard/Self Service/ReportCaster - Windows 2000
Posts: 68 | Location: Chicago | Registered: August 23, 2007