1206: l_set_of_books_id := c_BG_Rec.set_of_books_id;
1207: l_flex_code := c_BG_Rec.flex_code;
1208: end loop;
1209:
1210: if l_budget_calendar_id <> nvl(PSB_WS_ACCT1.g_budget_calendar_id, FND_API.G_MISS_NUM) then
1211: begin
1212:
1213: PSB_WS_ACCT1.Cache_Budget_Calendar
1214: (p_return_status => l_return_status,
1209:
1210: if l_budget_calendar_id <> nvl(PSB_WS_ACCT1.g_budget_calendar_id, FND_API.G_MISS_NUM) then
1211: begin
1212:
1213: PSB_WS_ACCT1.Cache_Budget_Calendar
1214: (p_return_status => l_return_status,
1215: p_budget_calendar_id => l_budget_calendar_id);
1216:
1217: if l_return_status <> FND_API.G_RET_STS_SUCCESS then
1226: p_return_status => l_return_status,
1227: p_msg_count => l_msg_count,
1228: p_msg_data => l_msg_data,
1229: p_parent_budget_group_id => l_budget_group_id,
1230: p_startdate_pp => PSB_WS_ACCT1.g_startdate_pp,
1231: p_enddate_cy => PSB_WS_ACCT1.g_enddate_cy,
1232: p_create_budget_account => FND_API.G_TRUE,
1233: p_set_of_books_id => l_set_of_books_id,
1234: p_flex_code => l_flex_code,
1227: p_msg_count => l_msg_count,
1228: p_msg_data => l_msg_data,
1229: p_parent_budget_group_id => l_budget_group_id,
1230: p_startdate_pp => PSB_WS_ACCT1.g_startdate_pp,
1231: p_enddate_cy => PSB_WS_ACCT1.g_enddate_cy,
1232: p_create_budget_account => FND_API.G_TRUE,
1233: p_set_of_books_id => l_set_of_books_id,
1234: p_flex_code => l_flex_code,
1235: p_in_ccid => p_code_combination_id,