Adobe form to print purchase order details

 1. Goto T-code SFP.

2. Select interface and give interface name click on create button.

3. Give description and click on save.

4. In this scenario purchase order as input and display purchase order header details and purchase order item details.

5. Double click on import and click on create button.



6. Give parameter name(p_ebeln) type and type name(ebeln).


7. Goto SE11 create two structures and table types for header and item details.
                                                   
                                            Structure for Header


                                            Table type for Header


Structure for item

                                                        Table type for item

8. Double click on global data and click on creates and add work areas and table types.



9. Double click on code initialization writes queries.

    * Add input parameters and output parameters.



10. Check and activate.

11. Goto T-code SFP.

12. Select form and give name click on create.

13. Give description and interface name and save.
14.

    * Select import folder from interface and move to context (adobe form).

    * Select Global data from interface and move to context (adobe form).
    * Click on save.

14. Click on layout.

        * Right Click on untitled sub form and change name (purchase order page) as per better understanding.

        * Right click on purchaseorderpage and click on insert sub form.

        * We can resize as per our requirement and better to rename (POtitle).

        * Select POtitle and click on insert top menu Standard -> text.

        * Double clicks on and change text (Purchase Order Details).

        * Right click on purchaseorderpage and click on insert sub form.

        * We can resize as per our requirement and better to rename (Purchaseorderinput).

        * Select Purchaseorderinput and click on insert top menu Standard -> text field.

        *  Double clicks on and change text (Purchase Order Number).

            - Goto pallets --> workspace--> reset pallete locations.

            - Click on field and click on binding take F4 and choose adobe form select input field(p_ebeln).

        * Right click on purchaseorderpage and click on insert sub form.

        * We can resize as per our requirement and better to rename (POheadertitle).

        * Select POheadertitle and click on insert top menu Standard -> text.

        * Double clicks on and change text (Purchase Order Header Details).

        * Right click on Purchaseorderpage and click on insert sub form.

        * We can resize as per our requirement and better to rename (POheaderdata).

            - Select POheaderdata and click on insert top menu Standard -> text field.

            - Double clicks on and change text (Purchase order number).

            - generate binding for Purchase order.

            - Likewise adding 4 text fields in sub form.

    


         * Right click on Purchaseorderpage and click on insert sub form.

        * We can resize as per our requirement and better to rename (POitemtitle).

        * Select POitemtitle and click on insert top menu Standard -> text.

        * Double clicks on and change text (Purchase Order Item Details).

        * Right click on Purchaseorderpage and click on insert sub form.

        * Rename as per our understanding (POItemdata).

        * Goto Data view in left select lt_ekpo and drop to sub form.

        * Click on save.



        Input



Output

*******************************Thank You****************************

Comments

Popular posts from this blog

New syntax for append- VALUE (new syntax 7.4+) in ABAP

Read statement new syntax in ABAP. (7.4+).

Add custom tab to me51n at item level in ABAP