Showing posts with label SAP Script. Show all posts
Showing posts with label SAP Script. Show all posts

Create BAR code in SAP Script

Now we know to create SAP script. We want to create a BAR code in the script. BAR code is actually a character format. It is generated from the character format. We can import bar code for some value like PO number, SO number, customer number like that. Here we are taking the script which has been created previously. We want to import the bar code against the vendor account number.

Step 1: Create a new character format.


Step 2: Select the Bar Code in standard attribute. Press F4 help on the bar code input field.


Step 3: SAP system already contains some bar code. We can choose any one of them.


Step 4: Now the bar code has been selected.


Step 5: Go to Vendor Master page window where we need to create the bar code against vendor account.


Step 6: Go to change editor and put the newly created character format beside vendor account as follows.


Step 7: The bar code has been imported. So activate the script and run the print program.


Step 8: Select the output device for print.


Step 9: The form will look like the following.


In this example we have imported a bar code which has been defined in the system. We can generate our own bar code also. For this we need to create a new bar code. To do this we have to go to SE73 - SAP Script Font maintenance. 

Step 1: Go to SE73. Select system bar codes and click on Display.


Step 2: All system defined bar codes will be displayed here. We have to define our own bar code from here. Click on the new button.


Step 3: Choose bar technology New.


Step 4: Give a custom name starting with Z or Y and enter a description.


Step 5: Choose a bar code symbol. All five symbols are supported in this system.


Step 6: Choose the alignment.


Step 7: Mention the bar code parameters.


Step 8: Save it in a package and create transport request.



Step 9: Now the bar code has been created and the display list will be updated.


Step 10: Here we can see that our bar code has been populated in the list.


Step 11: We can test the bar code with print preview.


Step 12: Our created bar code is as follows.

Convert SAP Script to Text file

Convert SAP Script to Text file

We can convert SAP script to a normal text file. Sometimes we need to dump a form and then do several operations into the system. If the form gets corrupted then we can upload the dump form into the SAP system. With the help of RSTXSCRP we can export form to text file and also import the text file to the form.

Step 1: Go to SE38 and execute the program RSTXSCRP.


Step 2: Select the form name and mode. Export for download and Import for upload.


Step 3: Mention the path and file name then Save.


Step 4: Now the form has been exported to text file.


Step 5: We can see the text file also.

Convert SAP Script to PDF

Convert SAP Script to PDF

We can convert the script to PDF by using the standard program RSTXPDFT4. We are taking the previous script and perform the following steps.

Step 1: Go to print program and execute it. We shall have a pop up window for output device. Click on the Print button there.


Step 2: This print request has been stored in spool. Now go to SP02 - list of spool request.


Step 3: Now we can see the spool request for the script has been updated in the list. Copy the spool request number - 10700 for this example.


Step 4: Go to SE38 and execute the standard program RSTXPDFT4.


Step 5: Enter the spool request, check the download PDF option and mention the path where the PDF needs to be stored.


Step 6: Browse the path with the proper file name and click on Save.


Step 7: Now the PDF has been stored into the entered location.


Step 8: Open the PDF.

Working with Standard SAP Script

Working with Standard SAP Script

In recent time there is very less requirement of SAP script scratch development. We generally work with the standard script which is already available in the system. We don't modify any standard script. There is a process to have the client copy of the standard script. Hence we copy the standard one to custom and then we can modify it as per the requirement.

Step 1: Go to NACE transaction to find out the name of the required standard script.


Step 2: Here we can see a lot of functional requirement and we have chosen the Billing. Then click on the Output type.


Step 3: Now we are in the display of output type. Click on the change button and then Position button.


Step 4: We shall need the output entry. Click on F4 help.


Step 5: All of the output types are displayed here. Now we have to choose the proper one.


Step 6: Now select the RD00 (invoice) for this case and then double click on Processing routines.


Step 7: Now we can see Program name, form name etc. If there is any smartform available then it will be mentioned under PDF/SmartForm.


Step 8: Now go to SE71 and type enter that form name (RVINVOICE01) for this case. Go to Utilities > Copy from client.


Step 9: We maintain the naming convention here as follows. We also can see the source client here.


Step 10: Save it and maintain a transport request.


Step 11: Now the form has been copied between clients.


Step 12: Now we can edit the custom form from SE71. Here we have to maintain the source language by which the form was created. For this form the source language was German (DE).


Step 13: Go to Page window > Main window.


Step 14: We want to create a Graphic here.


Step 15: Select the required Graphic and activate the form.


Step 16: Now go to the NACE again and the processing routines. Enter the newly updated custom form name.


Step 17: To check this go to VF03 - Billing document display.


Step 18: Enter a billing document number.


Step 19: Go to Billing Document > Issue output to.


Step 20: Select the invoice and click on the print preview.


Step 21: Finally we can see the form output which now contains the Graphic.