ȸéÀº evc4, db´Â abap·Î pda À¯Áöº¸¼ö¸¦ ÇÕ´Ï´Ù.
Ȥ½Ã À̺о߿¡ °æÇè ÀÖÀ¸½ÅºÐ²²¼ ´äº¯ ÁÖ½Ã¸é °í¸¿°Ú½À´Ï´Ù.
void C555Chul::GetT001L()
{
ParameterList* param = new ParameterList;
ParameterList* res = theApp.mc->execute(CREQ_TABLE, "ZPDA_SAVESPOT_SEARCH", param);
if(res != null)
{
Table* table = res->getTable("T_SAVESPOT"); ==>°¡)
if(table != null)
{
int count = table->getNumRow();
if(count > 0)
{
Row* row = table->getFirstRow();
for(int i = 0 ; i < count ; i++)
{
CString tmp_ = CString(row->getValue("STR001"));
CString tmp2_ = CString(row->getValue("STR002"));
m_comSpot.AddString(tmp_ + L"(" + tmp2_ + L")");
row = table->getNextRow();
}
}
}
Table* table02 = res->getTable("T_SAVEORDER"); ==>³ª)
if(table02 != null)
{
int count = table02->getNumRow();
if(count > 0)
{
Row* row = table02->getFirstRow();
for(int i = 0 ; i < count ; i++)
{
CString tmp_ = CString(row->getValue("STR001"));
CString tmp2_ = CString(row->getValue("STR002"));
m_comOrder.AddString(tmp_ + L"(" + tmp2_ + L")");
row = table02->getNextRow();
}
}
}
else
{
AfxMessageBox(L"test_table02 null!!");
}
À§¿Í °°ÀÌ dbÅ×À̺íÀ» Àоî¿Ã¶§ °¡)´Â ¿ø¼Ò½º¿¡ ÀÖ´ø°ÍÀ̶ó Àß ºÒ·¯¿É´Ï´Ù.
±×·±µ¥ ³ª)ºÎºÐÀº Á¦°¡ »õ·Î »ý¼ºÇÑ °Çµ¥ Å×À̺í Á¤ÀǸ¦ À߸øÇÑ°ÇÁö dbÆã¼Ç¿¡¼ Å×½ºÆ® Çغ¸¸é
T_SAVEORDER¿¡´Â µ¥ÀÌŸ°¡ ÀüºÎ µé¾î¿Â°É È®ÀÎÇߴµ¥ À̼ҽº¿¡¼ ¸ø°¡Áö°í ¿À³×¿ä..
not nullÀÌ µÇ¾î
else
{
AfxMessageBox(L"test_table02 null!!");
}
À» ž´Ï´Ù.
Á¦°¡ Å×À̺í Á¤ÀǸ¦ À߸øÇÑ°Ç°¡¿ä?