‎2011 May 26 2:34 PM
hi experts,
as i have small doubt regarding
while publishing web service by using rfc where i am unable to set optional for table structure i am able to put optional for import parameters may i know how to set optional for table structure ....
reagrds prabhanjan
‎2011 May 26 2:36 PM
table parameters are kind of obsolete, and ther is no need to use them.
If you declare the type of an import parameter correctly (with a tabletype existing in your dictionary) you can import a table in your import parameters. rest should be easy then.
Edited by: Florian Kemmer on May 26, 2011 3:37 PM
just for the record, this works with exporting parameters as well.
‎2011 May 26 2:36 PM
table parameters are kind of obsolete, and ther is no need to use them.
If you declare the type of an import parameter correctly (with a tabletype existing in your dictionary) you can import a table in your import parameters. rest should be easy then.
Edited by: Florian Kemmer on May 26, 2011 3:37 PM
just for the record, this works with exporting parameters as well.
‎2011 May 26 4:04 PM
table parameters are kind of obsolete, and there is no need to use them.
Except in remote-enabled FM's as long as basXML is not the RFC protocol. In this case, tables parameters are preferred, as they are much faster than changing parameters in this case. See Official ABAP Programming Guidelines by SAP Press (2010), pages 342-344.
‎2011 May 26 4:30 PM
Ignoring the TABLES/CHANGING/EXPORTING argument...
while publishing web service by using rfc where i am unable to set optional for table structure i am able to put optional for import parameters may i know how to set optional for table structure
Why not? There's no issue with marking a TABLES interface parameter with 'Optional' and publishing the function module or function group as a web service...
‎2011 May 27 6:02 AM
hi experts,
i am able to put optional for strucutre but i need to put optional for the individual fields present in that structure ...
in present sceniro either i am having to pass values for all the fields of the structure or skip the whole structure ..
but my requirmnt is that few of the fields are not mandatory in that structure so they should be acpet null values.
regards,
prabhanjan
‎2011 May 27 6:10 AM
Hi,
I think these validation are done using the coding only. Please check the source code inside the rfc for the particular field. and change the code accordingly.
Regards,
Dhina..
‎2011 May 27 6:34 AM
You can not put some of fields in structure is optinal or mandatory. You have to put validation in you program for that.
Only you can define structure parameter is optional or mandatory.
Kind Rgds
Ravi Lanjewar
‎2011 May 27 8:56 AM
hi experts,
as i have small problem when i have executed a bapi creation and i have saved that transaction
and in my criteria we have to check for recurssive and unfortunatly i need to delete all the fields of a record which was saved
and what function or bapi do i need to use there...
for commiting bapi_trnsaction_commit i have used
and for deleteing what should i use..
regards
prabhanjan
‎2011 May 27 9:03 AM