Skip to main content

Notifications

Dynamics 365 general forum
Unanswered

taPopEnterMatchInvToShpMultiLine error

Posted on by 4
Hi Experts, 
 
I want to use econnect procedure (taPopEnterMatchInvToShpMultiLine) in my website. But i always get error 4881 (Receipt Line Number Already Exists when i pass ShipRCPTLNNM parameter and 4874 (Input variable contains an empty value) when i pass QTYINVCD parameter value is 0.
 
can i submit econnect procedure (taPopEnterMatchInvToShpMultiLine) first then taPopEnterMatchInvLine and taPopEnterMatchInvHdr ? because i'm trying to submit taPopEnterMatchInvToShpMultiLine first.
 
this is my parameter i pass:
 
$PARAMS[] = "@I_vPOPRCTNM = '" . $HEADER['POPRCTNM'] . "'";
$PARAMS[] = "@I_vPOPMtchShpRcpt = '" . $detail['POPMtchShpRcpt'] . "'";
$PARAMS[] = "@I_vPONUMBER = '" . $HEADER['PONUMBER'] . "'";
$PARAMS[] = "@I_vQTYINVCD = '" . (int)$detail['QTYINVCD'] . "'";
$PARAMS[] = "@I_vRevalue_Inventory = '" . $detail['Revalue_Inventory'] . "'";
$PARAMS[] = "@I_vITEMNMBR = '" . $HEADER['ITEMNMBR'] . "'";
$PARAMS[] = "@I_vShipRCPTLNNM = '" . $detail['RCPTLNNM'] . "'";
$PARAMS[] = "@I_vVENDORID = '" . $HEADER['VENDORID'] . "'";
$GET_ACTINDX = $this->pst->select('ACTNUMST')->WHERE('ACTINDX', $detail['ACTINDX'])->GET('GL00105')->ROW_ARRAY();
$PARAMS[] = "@I_vVarianceAccount = '" . $GET_ACTINDX['ACTNUMST'] . "'";
$PARAMS[] = "@O_iErrorState = @_iErrorState OUTPUT";
$PARAMS[] = "@oErrString = @_ErrString OUTPUT";
$QUERY = "DECLARE @_iErrorState int    
                    DECLARE @_ErrString varchar(255)
                    exec [dbo].[taPopEnterMatchInvToShpMultiLine] " . implode(',', $PARAMS) . ";
                    SELECT @_iErrorState as ERRSTATE, @_ErrString AS ERRSTRING;";
 
 
anyone have a solution ?

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

News and Announcements

Give Back to the Community this Month

Quick Links

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,807 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 229,135 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans