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

Re: How to get Form Detail (Form Table Name) through Form Type?

$
0
0

Hi Pradeep,

for this scenario I usually use a ( reuseable ) switch condition :

String tableName = "";
switch (formType)
{    case "149": tableName = "OQUT"; break;//Quotation    case "139": tableName = "ORDR"; break;//Order    case "140": tableName = "ODLN"; break;//Delivery    case "133": tableName = "OINV"; break;//Invoice    case "180": tableName = "ORDN"; break;//Deliver Note Return    case "179": tableName = "ORIN"; break; //Invoice Credit Memo    case "60091": tableName = "OINV"; break; //Invoice    case "1470000200": tableName = "OPRQ"; break; //Purchase Request    case "540000988": tableName = "OPQT"; break; //Purchase Quotation    case "142": tableName = "OPOR"; break;//Purchase Order    case "143": tableName = "OPDN"; break;//Purchase Delivery Note/Goods Receipt    case "141": tableName = "OPCH"; break;//Purchase Invoice    case "181": tableName = "ORPC"; break;//Purchase Invoice Credit Memo    case "182": tableName = "ORPD"; break;//Goods Return
}
}

 

Or, if you catch an event  ( ItemEvent in this case ) on a document form:

SAPbouiCOM.Form oForm = SBO_Application.Forms.Item(pVal.FormUID);
String tableName = oForm.DataSources.DBDataSources.Item(0).TableName;

regards,

Maik


Viewing all articles
Browse latest Browse all 8082

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>