cancel
Showing results for 
Search instead for 
Did you mean: 

How to set Back ground job & get my desired output layout in sm36 & sm37 ?

Former Member
0 Kudos

Hai SAP Gurus,

I am currently taking ME2N [ PO Pending value] Report by setting variant in input screen & setting my own output layout [ only four field ie.Plant, Material,Currency,Still to be delivered value will be visible in output screen ]

I set Back ground in sm36 using my variant & i saw my output in sm37.. But cant get output as my desired field.. Even i not get currency & still to be delivered value..

Kindly guide me.

Thanks in advance..

swetha

Accepted Solutions (1)

Accepted Solutions (1)

JL23
Active Contributor

I guess you are mixing selection variant (what you enter in SM36 next to the report name) with Layout variant.

are you using ALV output?

Former Member
0 Kudos

Yes.. I am using ALV

Former Member
0 Kudos

I am giving ALV in ME2N input Field.. I want the same ALV [output in fore ground ] should comes in output..

Guide me pls..

Former Member
0 Kudos

IN SM36, i wil give like this..

Name RM06EN00

Variant SWETHAPO [ THIS IS THE VARIANT NAME ie. input feild]

Language EN

JL23
Active Contributor
0 Kudos

I am giving ALV in ME2N input Field..

about what field are you talking, I dont have any field in ME2N selection to enter a variant of the layout

JL23
Active Contributor
0 Kudos

Name RM06EN00

Variant SWETHAPO http:// THIS IS THE VARIANT NAME ie. input feild

Language EN

Variant SWETHAPO is a selection variant in this case.

Former Member
0 Kudos

yes.. u get my point ? i wil tell u Simple & clearly..

I need Same output when i run a ME2N Report in Foreground as well as Back Ground [sm36].

some field are missing in my output display..

JL23
Active Contributor
0 Kudos

I understand what you want. But it is not possible to get it if you have no field in the selection screen to tell SAP the layout of your choice.

I get many more fields in the spool of the background job than I have in my layout variant.

Have you done the customizing of the report yourself?

OLME > Reporting > Maintain purchasing lists > scope of list > define scope of list

How is the scope of list defined. what boxes are checked there.

Answers (4)

Answers (4)

Former Member
0 Kudos

This message was moderated.

Former Member
0 Kudos

SAP Experts,

Kindly help.. Problem not yet solved..

Edited by: Swetha on Jul 9, 2009 10:47 AM

JL23
Active Contributor
0 Kudos

I am still the opinion that you cannot get a personal laypout for a ME2N batch run, as there is no layout field in the selection screen, that would allow you to tell SAP in what layout the report shall be issued.

I wonder why you dont have the same fields in the background like me.

Ask SAP to get clarification, and dont forget to inform us about the result

Former Member
0 Kudos

Ok. To which Box i select for Still to be delivered value..? Total Open quantity or any other box to select ? guide me

JL23
Active Contributor
0 Kudos

I asked YOU what you have in your scope of list.

Former Member
0 Kudos

There Many Scope of list is there.. I am using ALV only..

In ALV, the Following things are marked as Tick

1) Qty/Val in BUn/LC

2) Open quantity/value

3) Stock in Transfer

4) Qty. for account assignment

5) Release

In Below, Settings for ALV Grid Control

Use ALV control is marked as Tick

Edited by: Swetha SAP Girl on Jun 26, 2009 1:48 PM

Former Member
0 Kudos

Guide ME PLEASE

JL23
Active Contributor
0 Kudos

What scope of list to you use in ME2N (it is the 3rd field from top in the selection) Do you really have a scope that is called ALV? Usually you have BEST as default.

Okay, I have the very same settings in BEST.

This are the header lines of my ME2N when I execute in batch:

Line1

Purch.Doc. Item Type Cat Vendor/supplying plant POrg PGr Doc. Date Material Short Text Matl Group POH D I I A TrackingNo Plnt SLoc Quantity OUn Quantity SKU Net price Crcy Per Agmt Item Targ. Val. TotOpenVal Open value Rel. value

Line2

Quantity OpenTgtQty Rel. Qty Val. Start VPer.End To be del. To be del. To be inv. To be inv. QuotDdln S Coll. No. Number Ctl Info Rec. Number Grp Strat Rel.stat Rel IStLoc Name of Vendor OPU Tx Tax Jur. Net Value I ConfItemNo Sort No.

Line3

Ext.H Cat. RU ReqmtPrio. Proc. Doc.

Former Member
0 Kudos

I Usually give "ALV" in the scope of list instead of Default "Basic" in ME2N Screen.

This is my Desired Output Field & I get this output report neatly in Foreground.. But I cant get all my desired field in Back Ground Job [ sm36 & sm37 ]- output report. Kindly guide me.. how cani get the same in foreground & back ground..

The Following is the Desired output Field.

1) Plant

2) Vendor

3) Material

4) Purchasing Doc. Type

5) Purchasing Document

6) Item

7) Document Date

😎 Still to be delivered (value)

9) Order Quantity

10) Still to be delivered (qty)

11) Currency

12) Item Category

13) Acct Assignment Cat.

Former Member
0 Kudos

GUIDE ME

Former Member
0 Kudos

Pls Guide

Former Member
0 Kudos

Dear Swetha,

I would like to suggest something:

1. I assume you already using a scope list with ALV set.

2. preview the report using foreground first, then you must have set an ALV variant for you desire layout.

3. Then go to setting --> layout --> manage --> set your ALV layout as default

Then after you run the repot in background the output will get from the default layout which is your desire layout.

Regards,

w1n

Former Member
0 Kudos

Hai,

I tried.. But Still I can't Achieve... Can u explain in Brief.. ?

Former Member
0 Kudos

Hi, Swetha,

1) Set dafault layout in ME2N transaction code with desired fields you want, that default layout will only displayed in SM37 -spool display.

2) Now if in your layout there some last fields are skipped or not appearing then at the time of displaying spool, press display with maximum width option (adjacent to spect.icon) instead of pressing display button(spect. icon).

Regards,

Yagnesh Bhatt

JL23
Active Contributor
0 Kudos

have you tested that?

Former Member
0 Kudos

Hi,

I tested this and i faced problem once, that i was not able to get all fields of my layout but i choose display fields with maximum width and then it came all fields.

Regards,

yagnesh

JL23
Active Contributor
0 Kudos

that is not working for me. I have about 65 fields in the spool that is created in backgorund.

My standard variant that is flagged as Default has only 4 fields, however in the background job I get a spool that has all 65 fields, which is even much more as the SAP layout 1DEFAULT has. I dont have any variant that has the fields that I get in the spool of batch job to ME2N.

Former Member
0 Kudos

I am Working on... thanks for all your Replies.. I am going to test.. But Not Yet Got Any Improvement..

Thanks

Swetha

Former Member
0 Kudos

Hi Swetha and Jurgel,

For transaction code first of all change scope of list to "ALLES" and thne execute report, then select fields you want -->

go to > Layout>Save --> save the layout

Now go to-->layout > manage>make it default variant

Now if you set backgrond job i hope it wiil fields that is available in layout only.

Regards,

Yagnesh Bhatt

Former Member
0 Kudos

Hai yagnesh bhatt ,

Thanks for your answer . But After Executing Tcode From "ALLES" Scope of list,

there is no option to choose Fields & Save Layout..,, Only ALV Can have option to chose feild & save output layout.. Am i Right ?

Kindly guide

Former Member
0 Kudos

HI

I am getting report in ALV form using scope of list ALLIES. Pl take scope of list in which you can report in ALV format..

Regards,

Yagnesh Bhatt

Former Member
0 Kudos

While running from ALLES scope of list, I am not getting in ALV format [ Excel grid format].

Also In SM37, while viewing report from Spool, I cant able to change layout. It is disabled.. How to make in enable..

Former Member
0 Kudos

Hi,

You have to set layout in report ME2N only not in SM37. Pl execute ME2N (in ALV format)with any small data , and then save layout and make it default then set ME2N with your inputs as back ground job and then display spool.

Regards,

yagnesh

JL23
Active Contributor
0 Kudos

The scope of list has not effect on ALV layout settings.

Former Member
0 Kudos

Hai,

Have u got any Solution ? Kindly Convey

JL23
Active Contributor
0 Kudos

no, I am still the opinion that you have to ask SAP.

Former Member
0 Kudos

ok thanks

Former Member
0 Kudos

Hi, I think this problem is caused because you use ME2N to define the layout.

In SM36, we use ABAP Program: RM06EN00 to set the background job, so if you define the layout use transaction code ME2N, the layout cannot used in SM36.

You can define a layout in transaction code SE38, select the program RM06EN00, click execture, then execture, now you can see the default layout is which you get in SM36. And you could change the layout here. When you finished it, save the layout and set it as default layout. Then goto SM36, create a job to test.

Good luck.

Former Member
0 Kudos

guide me