automatic post (ship only)

julkifli33julkifli33 Member Posts: 1,092
hi all...
i have created some functions from new table to sales order
creating sales order is already done
but i want this to be automatic posted become posted shipment

my code is like this :
variable
SalesHeader --> Table 36
PostSales --> codeunit 80
//Posting From Sales Order
SalesHeader.GET(SalesHeader."Document Type"::Order,LastOrderNo);
IF SalesHeader.FIND('-') THEN
  BEGIN
    CLEAR(PostSales);
    PostSales.RUN(SalesHeader);
  END;

this is the error message
Please enter "Yes" in Ship and/or Invoice and/or Receive

i know this is from codeunit 80, Text020
what i want is... how do i sent the parameter ship as yes

thanks

Answers

Sign In or Register to comment.