Quantcast
Channel: SCN : All Content - SAP Gateway
Viewing all articles
Browse latest Browse all 2823

Life Cycle In SAP gate way Odata service

$
0
0

I am new to SAP-ABAP and Odata Concept.

we are using RFC Service(RFC Function in ABAP) which is returning header data table and item data table separately,

i have made code(redefine) for "get entity set" for Header and Item part.

now i am calling same RCF method for item data get entity set .

so for every header data it is calling RFC from Item Data.

currently i am getting correct Nested json for Header data and Item data.

all item data json is inside related header data json

 

is there any to do this in just one RFC call?

i need all data as json from RFC .

this is json structure i am getting write now. 

d

{

Header data[0]{

                         header detail

                         item[0]{item detail}

                          item[1]{item detail}              

                          item[2]{item detail} 

                         .

                         .

                    }              

Header data[1]{

                         header detail

                         item[0]{item detail}

                          item[1]{item detail}              

                          item[2]{item detail} 

                         .

                         .

                    }              

}


Viewing all articles
Browse latest Browse all 2823

Trending Articles