Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Remittance Advice Form in Scripts

Former Member
0 Likes
777

Hi All..

I am doing Remittance Advice Form in Scripts. I want to print Purchase Order No. I want to read it from line items. For that I copied the Standard Pgm( RFFOUS_C) into Z pgm( ZRFFOUS_C). I copied standard form( F110_IN_AVIS) INTO Z form. For this I am writing PERFORM statement in the form like this

DEFINE &ZEBELN& = ' '

PERFORM GET_EBELN IN PROGRAM ZRFFOUS_C

USING &REGUP-BUKRS&

USING &REGUP-BELNR&

CHANGING &ZEBELN&

ENDPERFORM

Even In the place of PROGRAM ZRFFOUS_C, I am trying to use another Z pgm like Ztest.

In both case while creating payment advise I am getting an error PERFORM_TOO_MANY_PARAMETERS. And getting job is cancelled.

Even it is not creating Spool Request for Remittance Advice.

In z pgm I ma writing the perform statement like this…

FORM GET_EBELN USING ZBUKRS TYPE BSEG-BUKRS

ZBELNR TYPE BSEG-BELNR

CHANGING ZZEBELN TYPE BSEG-EBELN.

SELECT SINGLE EBELN FROM BSEG INTO ZZEBELN

WHERE BUKRS = ZBUKRS

AND BELNR = ZBELNR

AND BUZEI = 2.

ENDFORM.

PLZ GIVE ME SUGGESTIONS ASAP..

Regards

Rajendra

Hi All..

I am doing Remittance Advice Form in Scripts. I want to print Purchase Order No. I want to read it from line items. For that I copied the Standard Pgm( RFFOUS_C) into Z pgm( ZRFFOUS_C). I copied standard form( F110_IN_AVIS) INTO Z form. For this I am writing PERFORM statement in the form like this

DEFINE &ZEBELN& = ' '

PERFORM GET_EBELN IN PROGRAM ZRFFOUS_C

USING &REGUP-BUKRS&

USING &REGUP-BELNR&

CHANGING &ZEBELN&

ENDPERFORM

Even In the place of PROGRAM ZRFFOUS_C, I am trying to use another Z pgm like Ztest.

In both case while creating payment advise I am getting an error PERFORM_TOO_MANY_PARAMETERS. And getting job is cancelled.

Even it is not creating Spool Request for Remittance Advice.

In z pgm I ma writing the perform statement like this…

FORM GET_EBELN USING ZBUKRS TYPE BSEG-BUKRS

ZBELNR TYPE BSEG-BELNR

CHANGING ZZEBELN TYPE BSEG-EBELN.

SELECT SINGLE EBELN FROM BSEG INTO ZZEBELN

WHERE BUKRS = ZBUKRS

AND BELNR = ZBELNR

AND BUZEI = 2.

ENDFORM.

PLZ GIVE ME SUGGESTIONS ASAP..

Regards

Rajendra

2 REPLIES 2
Read only

naimesh_patel
Active Contributor
0 Likes
534

Hello,

Your form in the program should be like this.

FORM GET_EBELN TABLES i_inval STRUCTURE itcsy

i_outval STRUCTURE itcsy.

data: w_burks like t001-bukrs.

READ TABLE i_inval with key = 'REGUP-BUKRS'.

w_bukrs = i_inval-value.

  • read all other data from the input table as above

  • give back the values

READ TABLE i_outval with key = 'ZEBELN'.

out_tab-value = w_zebeln.

MODIFY out_tab INDEX sy-tabix.

endform

regards,

Naimesh

Read only

Former Member
0 Likes
534

Hi Raj ,

do i need <b>endperform</b>, please correct me if i am wrong.

PERFORM GET_EBELN IN PROGRAM ZRFFOUS_C

USING &REGUP-BUKRS&

USING &REGUP-BELNR&

CHANGING &ZEBELN&.

Regards

Prabhu