how to use entry point GENSIH to generate invoice by traiement?

Hi, 

Somebody can help me to implement a generator invoice by code with the entry point GENSIH please?

  • 0

    Hi Fabinho

    Try the following: Call GENSIH([L]LCOD, [L]LMAJ, [L]LECH, [L]LTEST, [L]LTRT, [F:XYZ]DOCNUM, [L]LSIVNUM, [L]LERR) From TRTVENFACG

    Function GENSIH parameters:

    LCOD : 1= create invoice / 2= fill screen classes [M] header and lines (ex : picking) /3= fill screen classes [M] lines (ex : picking) (add a new line)
    LMAJ : C=Create / M=Modify / S=Delete
    LECH : Creation of due dates (1=No / 2=Yes)
    LTEST : Simulation and Writing of trace files for tests (1 = No without simul / 2 = Yes without simul / 3 = No with simul / 4 = Yes with simul)
    LTRT : Script called for loading of [M] screen classes
    LORINUM : Original document number
    LSIVNUM : Invoice number created
    LERR : Error code (1 = on OBJECT action / 2 = in loading [M] header / 3 = in loading [M] detail / 4 = in table reading / 8 = in entry point / 9 = others


    Hope that helps!

    Regards, Benjamin