Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8572

Re: Calling RFC from Java Program?

$
0
0

Hello Experts,

 

Would anyone please help with some snippet? I'm getting followin error at JCoTable object codes. It seems I'm trying to intanitate the object with incorrect one.

 

 

Exception in thread "main"  java.lang.NullPointerException

 

 

 

 

JCoTable codes = function.getTableParameterList().getTable("ZSU_EXISTING_SUBSCRIPTIONS ");

        for (int i = 0; i < codes.getNumRows(); i++)

        {

             

            JCoStructure detail = codes.getStructure("ZSSU_EXISTSUBS");

            System.out.println(detail.getString("CONTRACT_NUMBER") + '\t' +

                               detail.getString("MATERIAL_NUMBER") + '\t' +

                               detail.getString("MATERIAL_DESC"));

        }

 

Regards

VB
P.S. Plz.,Refer attached screenshot.


Viewing all articles
Browse latest Browse all 8572

Trending Articles