You may come across the situation, where you have custom screen in your module. In that screen, if you want to create packages for the shipments. You will able to create packages but SSCC code not able generate for the respective packages. Because, X3 initiates SSCC variable only when you enter into Delivery screen
New Stuff: Count the number of keys(index) in table.
In order to initiate SSCC code at runtime, you can use below code,
Call GLOBVAR(Sales_Site) From WWGLOBSTO
GLOBVAR: This method is used initiate the SSCC code variable at runtime. This method assigns value to SSCC code variable at runtime based on the Sales site that you have passed.
Sales_Site :Sales_Site is the X3 sales site id id from your shipment will get shipped.
Note:You should call this function before generation of packages.
Also Read:
1.Set user defined shipment date on Delivery from Sales Order
2.Find earliest date from range of dates
3.Automatic patch creation in sage x3
4.How to change User Login without exiting from the current session
5.How to use Adxuid to control multiple users in Sage ERP X3…!