Array with data structure as input parameter

Discussion in 'PHP Toolkit' started by Heiko, Dec 20, 2016.

  1. Heiko

    Heiko New Member

    Hi there,
    I'm stuck. We want to use the PHP toolkit to call an RPG with a data structure Array as input Parameter. RPG is checking the values in the data structure, performs some Business logic and returns a status code and status message back to PHP.
    Until now we didn't manage to hand over the data struture array to RPG. Here's the spec of the RPG:

    d RPDV1238 pr extpgm('RPDV1238 ')
    d pUsr 50A
    d pPW 50A
    d pNumItems 4A
    d pPos LikeDs(pPosT) Dim(500)
    d pStatus 3A
    d pStatusMsg 100A

    d pPosT DS Qualified Template
    d PosNr 4A
    d GLN 13A
    d GTIN 13A
    d Tstmp 26A

    Does any one could help us, how to hand over the data structure array to RPG?

    BR,
    Heiko
     

Share This Page