cancel
Showing results for 
Search instead for 
Did you mean: 

modification of order confirmation smartform

Former Member
0 Kudos

hi abapers,

i have a requirement of changing sales order based on clients requirement.

i am getting the item details as

material description | batch number | quantity | unit price | amount

xxxx | 0987 | 9 (order qty) | 10 | 90

xxxx | 0987 | 1 (free qty ) | 10 | 10

-


here i am getting two rows one for order qty and one for free qty . my requirement is to print the output in one

row having both order qty and free qty. i.e

material description | batch number | order qty | free qty | unit price | amount

xxxx | 0987 | 9 (order qty ) | 1 ( free qty ) | 10 | 90

please tell me how to do this?

thank you,

satish.

Accepted Solutions (0)

Answers (5)

Answers (5)

former_member609120
Contributor
0 Kudos

Hi,

If you are using a standard print program, you wil not be able to modify it. Same would be the case with the standard form

Suggest you make a copy of the standard and then modify it as per your requirements.

See if the Standard smartform is R2RBL_SDORC_L is useful to you.

Preconfigured smartforms along with the print programs are in package SMB40. You can search there,

Thanks and Regards,

Vanessa

Former Member
0 Kudos

Hi All,

I was searching for order confirmation SMARTFORM and came accross this thread. This does not have the SAP SMARTFORM and program names. Can somebody post the SAP deliveried SMARTFORM and SMARTFORM program name for order confirmation. We are planning to copy BA00 and add our customer requirements.

Thanks

Ram

Former Member
0 Kudos

hi,

Here , we are using standard print program "RVADOR01 " for smartform (order confirmation).

so where should i change the program to get the required output as i mentioned in the above forum.

can you please tell me?

thank you,

satish

Former Member
0 Kudos

Hi,

For your requirement you must club all values into one internal table using Program lines node Before diplaying the Items details in Table node.

For that Main window--->Program lines Provide necessary inputs and Outputs.

in Program lines node you can club all the values using Common Material no or Batch number

-


>then take Table node provide that internal table as input.

Former Member
0 Kudos

Hi,

please check the below logic and do in the driver program

Declare ITAB with fields material desc,batch,order qty , free qty , unit price ,amount .

now loop at your final table which you told with 2 lines.

loop at it_final.

if it_final-matnr = itab-matnr. " for 2nd row

itab-freeqty = it_final-freeqty.

append itab.

don't use clear statement on itab.

else.

itab-material = it_final-material.

itab-batch = it_final-batch.

itab-orderqty = it_final-orderqty.

itab-unitprice = it_final-unitprice .

itab-amount = it_final-amount.

endif.

endloop.

Please try to do in this logic if you have only 2 reords for every material. or otherwise. think in anotherway.finally pass this itab to form parameters. don't do this type of logic in program lines of smartforms it will decrease performance bonus.

Thanks,

suma.