73: );
74: END IF;
75:
76: INV_MGD_POSITIONS_PROC.Build
77: ( p_init_msg_list => FND_API.G_TRUE
78: , x_return_status => l_return_status
79: , x_msg_count => l_msg_count
80: , x_msg_data => l_msg_data
81: , p_data_set_name => p_data_set_name
88: , p_date_to => p_date_to
89: , p_bucket_size => p_bucket_size
90: );
91:
92: IF l_return_status = FND_API.G_RET_STS_SUCCESS
93: THEN
94: x_retcode := 0;
95: x_errbuff := NULL;
96: ELSE
116: );
117: END IF;
118: x_retcode := 2;
119: x_errbuff := SUBSTR
120: ( FND_MSG_PUB.Get(p_encoded => FND_API.G_FALSE)
121: , 1, 255
122: );
123: ROLLBACK;
124:
160: );
161: END IF;
162:
163: INV_MGD_POSITIONS_PROC.Purge
164: ( p_init_msg_list => FND_API.G_TRUE
165: , x_return_status => l_return_status
166: , x_msg_count => l_msg_count
167: , x_msg_data => l_msg_data
168: , p_purge_all => p_purge_all
170: , p_data_set_name => p_data_set_name
171: , p_creation_date => p_creation_date
172: );
173:
174: IF l_return_status = FND_API.G_RET_STS_SUCCESS
175: THEN
176: x_retcode := 0;
177: x_errbuff := NULL;
178: ELSE
198: );
199: END IF;
200: x_retcode := 2;
201: x_errbuff := SUBSTR
202: ( FND_MSG_PUB.Get(p_encoded => FND_API.G_FALSE)
203: , 1, 255
204: );
205: ROLLBACK;
206: