Find Merchandise category from hierarchy level
Hi Gurus,
In IS-Retail suppose we have two hierarchy levels 1 and 2 belonging to Merchandise category N.
Article N1 belongs to level 1 and article N2 belongs to level 2.
So is there any way of finding out the hierarchy level given the article N1 (for eg.) ?
Hi,
see the link below:
http://help.sap.com/saphelp_45b/helpdata/en/12/084a85470311d1894a0000e8323352/frameset.htm.
it may help.
Thanks,
Rahul
Similar Messages
-
Table link between merchandise category & hierarchy level
Hi,
i want to know the table link between merchandise category(MATKL) & Hierarchy level (CLASS).It would b better if i can get the link between material code & Hierarchy Level (CLASS) .
If u hav any idea please let me knw.Hi,
Have u assigned fields, in the access sequence. U can find two tabs in access sequence, accesses and fields, in the tab access u maintain all the tables according to ur requirement. after that u have to select fields option press enter repeatedly for the field assignment of the selected fields. i think ur problem will be resolved once u complete this.
Regs,
Ravi Duggirala -
Table relationship between hierarchy level and merchandise category
1) Want to find Merchadise Category from Merchandise Hierarchy level which is attached with same Merchandise category.
I am having data/TABLE as below.
my input: M_WWG1C_class
i want to fetch data matkl in T023 or matkl in MARA for the same article within same merchandise category.
How i can have link?
2) i am having input CAWN_atwrt(Characteristic Value) and how i can reach matkl in T023 or matkl in MARA for the same article within same merchandise category.Oracle does not support REPEATABLE READ transaction isolation level. It only supports SERIALIZABLE, READ COMMITED and READ ONLY isolation levels.
The default is READ COMMITED.
While the READ COMMITED can access all the committed data till the point of execution in transaction, READ SERIALIZABLE can access committed data till the point of start of transaction.
Another difference between two with respect to ROW LEVEL LOCKING is
Both read committed and serializable transactions use row-level locking, and both will wait if they try to change a row updated by an uncommitted concurrent transaction. The second transaction that tries to update a given row waits for the other transaction to commit or roll back and release its lock. If that other transaction rolls back, the waiting transaction, regardless of its isolation mode, can proceed to change the previously locked row as if the other transaction had not existed.
However, if the other blocking transaction commits and releases its locks, a read committed transaction proceeds with its intended update. A serializable transaction, however, fails with the error "Cannot serialize access", because the other transaction has committed a change that was made since the serializable transaction began.
Read following for clearing your concepts on transaction isolation levels and locking mechanisms
http://otn.oracle.com/docs/products/oracle9i/doc_library/release2/server.920/a96524/c21cnsis.htm#2414
Chandar -
Hello Guru's
The end user has to prepare the excel file with data from say 10th level of hierarchy for Profit Centre.
With the current reports which has the complete hierarchy structure, he has to scroll, pinpoint to the exact level of hierarchy and then copy and paste the relevant data from that level of hierarchy.
The job gets difficult when we have many levels in the hierarchy.
We wants specific report which will directly give the data of the specified level ?
How can this be realised ?
Edited by: saleem m on Mar 27, 2008 5:58 PM
Edited by: saleem m on Mar 27, 2008 6:01 PMHello,
i have not tried that, but this should work...
You can create the variable of the type hierarchy node with processing type "user exit" / multiple values.
In the user exit you can read the hierarchy structure, find all nodes from the level 10 and assign this nodes to the variable.
Regards,
Kirill -
Merchandise Category Hierarchy level wise Condition Tables.
Hi,
I'm faced with a requirement where I have to maintain Condition table Merchandise Category Hierarchy level wise. Is it possible? Can anyone throw light on the subject.
RegardsHi,
Have u assigned fields, in the access sequence. U can find two tabs in access sequence, accesses and fields, in the tab access u maintain all the tables according to ur requirement. after that u have to select fields option press enter repeatedly for the field assignment of the selected fields. i think ur problem will be resolved once u complete this.
Regs,
Ravi Duggirala -
Merchandise category & hierarchy upload using LSMW???
Hi
I am trying to upload Merchandise category and hierarcy using LSMW (BAPI/IDOC method only).
For merhcandise category
I used message type W_WGRP and it is helping me in changing or reclassification of articles. But I am not able to create new merchandise category with this. I used structure E1BPE1WGR01 with "function" field with value "005, LSMW is working fine idocs are created successfully but no new Merc Cat is created.
When I used same structure with "function" field with value "009" I get error message "Class XXX does not exist or or is not valid on this date".
For Merchandise Catrgory Hierarchy
I used idoc CLSMAS but getting error message "Keyword missing for class XXX"
has anybody uploded entire hierarchy structure using LSMW ?Sorry to say, but your problem is not resolved.
In IS-Retail, a merchandise category must first be created as a class (CLSMAS) and then also as a merchandise category (W_WGRP). Yes, you must process two IDoc per merchandise category, and in that order.
To understand how to load data using LSMW, the best approach to watch what the system does naturally. In this case, use T-Code WGSE to send the merchandise category hierarchy via ALE from one system-client to another. For understanding, you needn't configure the entire ALE scenario, just the outbound portion. Then watch the outbound IDocs be created; there's your example!
For merchandise category hierarchy (including merchandise categories), there are four message types that will be sent: W_WGRP, CHRMAS, CLFMAS, and CLSMAS.
IDoc Serialization using message types (serialization groups) is used when several different message types are dependent on each other, as is the case here. For example, if a merchandise category is assigned to a merchandise category hierarchy level, the merchandise category hierarchy level must first exist. How you use LSMW and IDocs is informed by the sequence.
To understand the IDoc sequence for creating the merchandise category hierarchy (including merchandise categories), use T-Code BD44 to view the Serialization Group GRP_W_WGRP includes the 4 desired message types in sequence:
CHRMAS04 Distr. of Characteristics with Dependencies and Long Texts
CLFMAS02 Master object classification
CLSMAS04 Classes with Long Texts, Document Links, and E1UPSLINK
W_WGRP01 Distribution of material groups
CHRMAS04 is only relevant of Characteristics are being assigned to merchandise categories. Let us leave Characteristics aside for now.
Step 1: Create Merchandise Category Hierarchy Nodes
Step 2: Merchandise Categories - Create as a Class
Step 3: Merchandise Categories - Change as a Retail MC
Step 4: Merchandise Categories - Assign Category Hierarchy Nodes each other, and assign MC class to MCH node.
For this, use these messages:
Step 1: CLSMAS04
Step 2: CLSMAS04
Step 3: W_WGRP01
Step 4: CLFMAS02
- Paul
Paul R. Gendreau, Jr.
SAP Retail -
Merchandise Category hierarchy - how do you connect them?
Hello all:
I am creating an assignment to do with my MBAs this Saturday and I have hit a stumbling block.
I am not sure it is my understanding on the SAP concepts or my not clicking the right thing!!!
So here is my scenario. :
MC level nonfood
MC level Drugstore
MC level Beauty
Mcategory Soap
So I have each of these created and I can assign the merchandise category Soap to the MC level Beauty. I cannot assign any additional levels to Soap. I can see additional lines, but they are grayed out and I can not click on them or add any additional levels to the category
Then I tried to link Beauty to Drugstore and then Drugstore to Nonfood u2013 this did not work either u2013 or I can't find the right place to link them.
Help
MollyMolly - no worried. Gail will be getting a note out to the Retail course developers w/more info about posting questions. Before UAC went live we debated about where various discussions should be initiated ... and the sense we got from faculty was that more theoretical / general discussions should go in the public area (i.e. here), but faculty preferred to hold specific product / curriculum focused discussions in the members-only area that only faculty had access to (so students aren't using the posts as a way for them to take the quick route through exercises).
Heather -
Differences between Article Hierarchy and Merchandise Category
Hai Gurus,
Can somebody distinguish the differences between the Article Hierarchy and Merchandise Categotry? Which one is better to use? Both seems to have a similiar functionality but why SAP had proposed Article hierarchy and Merchandise category seperately?Hi Voyeurhuman,
if you have not typed correctly, then you might be interested to know the difference between Articel hierarchy & Merchandise hierarchy.
pls go thru following:
Article Hierarchy
.grouping of articles with sales oriented approach
.customer oriented structure
.Consumer decision Tree
.maximum eight levels
.planning hierarchy used for sales plannng in MAP
.multiple no. of Article hierarchies at a time with schedule article hierarchy i.e. with time dependent functionality
.can be define for distrubution chain dependent
.can be transported to BI
.data can be imported as wellas exported using interfaces
.sub structure of one can be copied from one to another
.Major characteristics-->responsibility, reference assignment, price point group assignmnet, merchandise distributio(fashion/basic), role,strategy/
.multiple assignment of articles is not possible within same category
.it can be assigned to department store and shops with pre-requisite of multiple assignment checked
Merchandise Hierarchy
.its a purchase oriented approach
.it classify and structure all aspects of the merchandise
.purchaser decision tree
.An unlimited number of hierarchy levels is possible
.terms are used in merchandise category hierarchies
-Merchandise category hierarchy levels
-Merchandise category hierarchies
-Characteristics profiles
.All the elements in the merchandise category hierarchy are defined as classes(class 026)
Both Article & Merchandise Hierarchies are very much different. Both are meant for differnt purposes.
thanks,
Naresh Kumar
Edited by: Naresh_ISR on Feb 17, 2010 10:47 AM
Edited by: Naresh_ISR on Feb 17, 2010 10:48 AM -
How to only display specific members from dissimilar hierarchy levels?
Hi,
I have a Business Partner that routinely wants to build a report that displays members from dissimilar hierarchy levels. For example, she wants to display member "210_UNASSIGNED EXP/ACC" from level 8 and member "E090_ADVISOR SERVICES" from level 1. When she filters on just those two members, the reports displays as such:
She then must manually expand the "E020_CORPORATE AND EXECUTIVE" member 7 times to see "210_UNASSIGNED EXP/ACC":
Is there anyway to make her life easier and have the report display only the "210_UNASSIGNED EXP/ACC" member and the "E090_ADVISOR SERVICES" member, even though they are from different levels?
Thanks,
Michael J Titera
BI4.0 SP8.3
SQL Server 2012Hello Michael
Displaying information from mixed hierarchy levels without the context of the parent members is a reporting workflow best suited to WebI and CR. The AOLAP content can be exported as an Analysis View and then this becomes a data source for WebI and CR.
Our previous product Voyager used to allow member selection from mixed levels without the context of parent members but it caused a lot of confusion and misinterpretation of the data, which is why we deliberately do not have it in AOLAP.
Worth noting that BI4.1 was a big release for AOLAP with many enhancements. One is "Expand to Level". So instead of having to click 7 times to expand the hierarchy, it now just requires one mouse right-click to do the same thing.
Regards
Ian -
How to derive new attributes from the levels of a hierarchy
Hello,
I have a hierarchy based on object XYZ where each level has a specific meaning, for example: Continent, Country, Region.
I would like to create new attributes to this object XYZ that would be derived from the hierarchy levels.
Can anyone provide some help?
Thanks,
TomHi.
If I understand correctly you want to fill an attribute of XYZ with information on where in the hierarchy the particular XYZ-value is placed?
If so, I guess you would want attributes on XYZ for each "thing" you derive from the hierarchy levels, but at any rate, you can look up the level each XYZ value belongs to in the H table so, /bic/Hxyz. Fx value 123 is on level 5 and you get the parent ID as well.
Keep checking the parent ID and which level it is on in order to know when you have reach the next logical "thing" and then read the value of the node and put it as an attribute of XYZ.
regards
Jacob -
How to find articles if I know merchandise category?
Hi,
I know merchandise category, for example, 08-03-06.
How can I find articles ?
Thanks.Dear Michael
May be the link would be helpful to you
[Merchandise Category Reference Articles |http://help.sap.com/saphelp_46c/helpdata/en/12/084869470311d1894a0000e8323352/frameset.htm]
thanks
G. Lakshmipathi -
Finding the Message Category from Message Type ( TXN - NOTIF_CREATE )
Dear All,
According to my requirement , I need to find the Message Category , from the Message Type.
As for Example :
SLF1 is the Message Category for Message Type SLFN .
I have got a F.M "SUP_STSUP_READ_PROCESS_TYPE" which gives the Message Type , now i need the Corresponding
Message Category.
We can also see the Message Type in Transaction : NOTIF_CREATE.
Please Help.
Thanking You All.Dear All,
According to my requirement , I need to find the Message Category , from the Message Type.
As for Example :
SLF1 is the Message Category for Message Type SLFN .
I have got a F.M "SUP_STSUP_READ_PROCESS_TYPE" which gives the Message Type , now i need the Corresponding
Message Category.
We can also see the Message Type in Transaction : NOTIF_CREATE.
Please Help.
Thanking You All. -
Merchandise category Hierarchy
All ,
I want to create the merchandise category Hierarchy for the TCode WG21.
I would like to know is there any FM,BAPI or Idocs for creating this .
Your inputs will be higly appreciated .
Regards,
Vijay.please post this in BW Business Explorer forum
Regards
Raja -
Unable to find Database Item Name for Employee Category at assignment level
Hi,
What is the database item name for employee category at assignment level.
I want to call employee category colomn of assignment level in fast formula.
Thanks in advance...It seems that there are no seeded database items available for employee category, the only other option is to write a plsql function at the database level which will return the employee category for a given assignment_id & effective dates. Link this plsql function to a Fast formula function. You can use the newly created fast formula function in your fast formula.
Regards,
Senthil -
To get Merchandise Category(MATKL) Based on Country.
Hi,
I want to get Merchandise Category(MATKL) Based on Country.
I am fetching WERKS
LAND1from t001w into IT_001w.
Getting Distinct MATNR from MARC for all entries in IT_T001w.
Now Getting MATNR
MATKL from MARA for all entries in IT_MARC.
Now looping and getting MATKL and LAND1 in one internal table.
But I have lot of WERKS in One Country so program is taking too much time.
How to Improve my programPerformance ?
Is there any other logic ?
Thanks
KumarHi Anil..
Please find below code and suggest me ...
***Selection Screen
SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-002.
SELECT-OPTIONS : s_land1 FOR t005-land1 NO-EXTENSION NO INTERVALS OBLIGATORY. "Added
*PARAMETER chk AS CHECKBOX DEFAULT 'X'.
PARAMETER p_file LIKE rlgrap-filename NO-DISPLAY.
SELECTION-SCREEN END OF BLOCK b1.
****START-OF-SELECTION.
START-OF-SELECTION.
SELECT land1 FROM t005 INTO TABLE it_log_country WHERE land1 IN s_land1.
SELECT land1
filepath FROM zcountry_file INTO TABLE it_file WHERE land1 IN s_land1.
***Get Data from T001w
IF it_file[] IS NOT INITIAL.
SELECT werks
land1 FROM t001w INTO TABLE it_t001w WHERE land1 IN s_land1.
ENDIF.
IF it_t001w[] IS NOT INITIAL.
SORT it_t001w[] BY werks.
***Get Data from MARC
SELECT DISTINCT matnr FROM marc INTO TABLE it_marc
FOR ALL ENTRIES IN it_t001w WHERE
werks = it_t001w-werks.
IF it_marc[] IS NOT INITIAL.
SORT it_marc[] BY matnr.
***Get Data from MARA
SELECT matnr
matkl FROM mara INTO TABLE it_mara FOR ALL ENTRIES IN it_marc
WHERE matnr = it_marc-matnr.
ENDIF.
ENDIF.
IF it_mara[] IS NOT INITIAL.
SORT it_mara[] BY matnr.
***Get Data from T023T
SELECT matkl
wgbez FROM t023t INTO TABLE it_t023t FOR ALL ENTRIES IN it_mara
WHERE matkl = it_mara-matkl AND spras = sy-langu.
SORT it_t023t[] BY matkl.
***Fill Table IT_ITAB based on Country Wise
LOOP AT it_mara INTO wa_mara WHERE matkl <> space.
READ TABLE it_t023t INTO wa_t023t WITH KEY matkl = wa_mara-matkl BINARY SEARCH.
IF sy-subrc = 0.
READ TABLE it_marc INTO wa_marc WITH KEY matnr = wa_mara-matnr BINARY SEARCH..
IF sy-subrc = 0.
READ TABLE it_t001w INTO wa_t001w WITH KEY werks = wa_marc-werks BINARY SEARCH..
IF sy-subrc = 0.
wa_itab-matkl = wa_t023t-matkl.
wa_itab-land1 = s_land1-low. "wa_t001w-land1.
APPEND wa_itab TO it_itab.
ENDIF.
ENDIF.
ENDIF.
ENDLOOP.
ENDIF.
IF it_itab[] IS NOT INITIAL.
SORT it_itab[] BY land1 matkl.
***Delete Duplicate Entries
DELETE ADJACENT DUPLICATES FROM it_itab[] COMPARING land1 matkl.
itab[] = it_itab[].
SORT itab[] BY land1.
***Get MC Hierarchy Levels Based on MATKL
LOOP AT itab.
REFRESH it_wgh.
***Read MC Description
READ TABLE it_t023t INTO wa_t023t WITH KEY matkl = itab-matkl BINARY SEARCH.
IF sy-subrc = 0.
itab-wgbez = wa_t023t-wgbez.
ENDIF.
***FM to Get MC Hierarchy Levels based on MC
CALL FUNCTION 'MERCHANDISE_GROUP_HIER_ART_SEL'
EXPORTING
matkl = itab-matkl
spras = sy-langu
TABLES
o_wgh01 = it_wgh
EXCEPTIONS
no_basis_mg = 1
no_mg_hier = 2
OTHERS = 3.
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
**Read MC Hierarchy Levels
DESCRIBE TABLE it_wgh LINES v_lines.
IF v_lines <> 0.
READ TABLE it_wgh INDEX v_lines.
itab-mch1 = it_wgh-wwgha.
itab-mchdes1 = it_wgh-wwghb.
v_lines = v_lines - 1.
IF v_lines <> 0.
READ TABLE it_wgh INDEX v_lines.
itab-mch2 = it_wgh-wwgha.
itab-mchdes2 = it_wgh-wwghb.
v_lines = v_lines - 1.
IF v_lines <> 0.
READ TABLE it_wgh INDEX v_lines.
itab-mch3 = it_wgh-wwgha.
itab-mchdes3 = it_wgh-wwghb.
v_lines = v_lines - 1.
IF v_lines <> 0.
READ TABLE it_wgh INDEX v_lines.
itab-mch4 = it_wgh-wwgha.
itab-mchdes4 = it_wgh-wwghb.
v_lines = v_lines - 1.
IF v_lines <> 0.
READ TABLE it_wgh INDEX v_lines.
itab-mch5 = it_wgh-wwgha.
itab-mchdes5 = it_wgh-wwghb.
v_lines = v_lines - 1.
IF v_lines <> 0.
READ TABLE it_wgh INDEX v_lines.
itab-mch6 = it_wgh-wwgha.
itab-mchdes6 = it_wgh-wwghb.
v_lines = v_lines - 1.
IF v_lines <> 0.
READ TABLE it_wgh INDEX v_lines.
itab-mch7 = it_wgh-wwgha.
itab-mchdes7 = it_wgh-wwghb.
v_lines = v_lines - 1.
IF v_lines <> 0.
READ TABLE it_wgh INDEX v_lines.
itab-mch8 = it_wgh-wwgha.
itab-mchdes8 = it_wgh-wwghb.
v_lines = v_lines - 1.
ENDIF.
ENDIF.
ENDIF.
ENDIF.
ENDIF.
ENDIF.
ENDIF.
ENDIF.
MODIFY itab.
CLEAR : v_lines,wa_t023t.
CLEAR itab.
ENDLOOP.
ENDIF.
Open Application Server & Generate CSV File
IF itab[] IS NOT INITIAL.
SORT itab[] BY land1.
LOOP AT itab .
IF itab1[] IS INITIAL.
CONCATENATE
'MCCODE'
'ARTICLE_TYPE'
'DEPARTMENT'
'DEPARTMENT_DESCRIPTION'
'CLASS'
'CLASS_DESCRIPTION'
'SUBCLASS_1'
'SUBCLASS1_DESCRIPTION'
'SUBCLASS_2'
'SUBCLASS2_DESCRIPTION'
'SUBCLASS_3'
'SUBCLASS3_DESCRIPTION'
'SUBCLASS_4'
'SUBCLASS4_DESCRIPTION'
'SUBCLASS_5'
'SUBCLASS5_DESCRIPTION'
'SUBCLASS_6'
'SUBCLASS6_DESCRIPTION'
'MC_DESCRIPTION'
'DIMENSION_TYPE'
'DIM1'
'DIM2'
'USER_DEFINE_CODE'
'Duration_Type'
'Start_Duration'
'End_Duration'
'Start_Year'
'End_Year'
'MC_Status'
'MC_Type'
'Ref MC'
INTO header SEPARATED BY ','.
MOVE header TO itab1-str.
APPEND itab1.
CLEAR itab1.
ENDIF.
CONCATENATE '"' itab-matkl '"' INTO matkl.
CONCATENATE '"' itab-arttyp '"' INTO arttyp.
CONCATENATE '"' itab-mch1 '"' INTO mch1.
CONCATENATE '"' itab-mchdes1 '"' INTO mchdes1.
CONCATENATE '"' itab-mch2 '"' INTO mch2.
CONCATENATE '"' itab-mchdes2 '"' INTO mchdes2.
CONCATENATE '"' itab-mch3 '"' INTO mch3.
CONCATENATE '"' itab-mchdes3 '"' INTO mchdes3.
CONCATENATE '"' itab-mch4 '"' INTO mch4.
CONCATENATE '"' itab-mchdes4 '"' INTO mchdes4.
CONCATENATE '"' itab-mch5 '"' INTO mch5.
CONCATENATE '"' itab-mchdes5 '"' INTO mchdes5.
CONCATENATE '"' itab-mch6 '"' INTO mch6.
CONCATENATE '"' itab-mchdes6 '"' INTO mchdes6.
CONCATENATE '"' itab-mch7 '"' INTO mch7.
CONCATENATE '"' itab-mchdes7 '"' INTO mchdes7.
CONCATENATE '"' itab-mch8 '"' INTO mch8.
CONCATENATE '"' itab-mchdes8 '"' INTO mchdes8.
CONCATENATE '"' itab-wgbez '"' INTO wgbez.
CONCATENATE '"' itab-dimtyp '"' INTO dimtyp.
CONCATENATE '"' itab-dim1 '"' INTO dim1.
CONCATENATE '"' itab-dim2 '"' INTO dim2.
CONCATENATE '"' itab-usrdc '"' INTO usrdc.
CONCATENATE '"' itab-durtyp '"' INTO durtyp.
CONCATENATE '"' itab-sdur '"' INTO sdur.
CONCATENATE '"' itab-edur '"' INTO edur.
CONCATENATE '"' itab-syr '"' INTO syr.
CONCATENATE '"' itab-eyr '"' INTO eyr.
CONCATENATE '"' itab-mcstatus '"' INTO mcstatus.
CONCATENATE '"' itab-mctyp '"' INTO mctyp.
CONCATENATE '"' itab-wwgda '"' INTO wwgda.
CONCATENATE
matkl
arttyp
mch1
mchdes1
mch2
mchdes2
mch3
mchdes3
mch4
mchdes4
mch5
mchdes5
mch6
mchdes6
mch7
mchdes7
mch8
mchdes8
wgbez
dimtyp
dim1
dim2
usrdc
durtyp
sdur
edur
syr
eyr
mcstatus
mctyp
wwgda
INTO itab1-str SEPARATED BY ','.
APPEND itab1.
CLEAR : matkl,arttyp, mch1, mchdes1,mch2,mchdes2,mch3,mchdes3,mch4,mchdes4,mch5,
mchdes5,mch6,mchdes6,mch7,mchdes7,mch8,mchdes8,wgbez,dimtyp,dim1,dim2,
usrdc,durtyp,sdur,edur,syr,eyr,mcstatus,mctyp,wwgda,itab1.
AT END OF land1.
CLEAR : wa_file,p_file,efile,v_file.
READ TABLE it_file INTO wa_file WITH KEY land1 = itab-land1.
efile = wa_file-filepath.
CONDENSE efile.
CONCATENATE efile 'Merchandise_Category'
sy-datum2(2) sy-datum4(2) sy-datum+6(2)
sy-uzeit(2) sy-uzeit+2(2) '_' itab-land1 '.txt' INTO p_file.
CONCATENATE 'Merchandise_Category'
sy-datum2(2) sy-datum4(2) sy-datum+6(2)
sy-uzeit(2) sy-uzeit+2(2) '_' itab-land1 '.txt' INTO v_file.
IF wa_file-filepath IS INITIAL.
CLEAR p_file.
ENDIF.
OPEN DATASET p_file FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.
IF sy-subrc EQ '0'.
LOOP AT itab1.
IF sy-subrc = 0.
TRANSFER itab1-str TO p_file.
ENDIF.
ENDLOOP.
CLOSE DATASET p_file.
Message 'File has been Created at defined Path' type 'I'.
MESSAGE 'File has been Created' TYPE 'S'.
wa_log-land1 = itab-land1.
wa_log-filepath = wa_file-filepath.
wa_log-filename = v_file.
wa_log-flag = 'X'.
APPEND wa_log TO it_log.
CLEAR wa_log.
ELSEIF sy-subrc EQ '8'.
wa_log-land1 = itab-land1.
wa_log-filepath = wa_file-filepath.
wa_log-filename = v_file.
wa_log-flag = 'Y'.
APPEND wa_log TO it_log.
CLEAR wa_log.
ENDIF.
REFRESH itab1.
CLEAR itab1.
ENDAT.
ENDLOOP.
ENDIF.
IF it_log[] IS NOT INITIAL.
WRITE :/5 'Country', 15 'Folder Name', 40 'File Name', 90 'Status'.
LOOP AT it_log INTO wa_log WHERE flag = 'X'.
WRITE :/5 wa_log-land1, 15 wa_log-filepath, 40 wa_log-filename, 90 'Created Successfully'.
ENDLOOP.
SKIP 2.
LOOP AT it_log INTO wa_log WHERE flag = 'Y'.
WRITE :/5 wa_log-land1, 15 wa_log-filepath, 40 wa_log-filename, 90 'NOT Created'.
ENDLOOP.
ENDIF.
SKIP 2.
IF it_log_country[] IS NOT INITIAL.
LOOP AT it_log_country INTO wa_log_country.
READ TABLE itab WITH KEY land1 = wa_log_country-land1.
IF sy-subrc <> 0.
WRITE :/5 'No Data Exists For Country', 35 wa_log_country-land1.
ENDIF.
ENDLOOP.
ENDIF.
Maybe you are looking for
-
Error deploying PAR file from Developer Studio (NW04)
Hello, i've got a problem while trying to deploy a PAR file from NW Developer Studio. The PAR Export function says "Unable to connect to the Portal", the portal itself gives the following response: "ERROR: Upload failed - exception caught: com.sappor
-
If I bought Apple TV could I use mirroring to watch a film online ???
I just want to know if I bought Apple TV would I be able to watch a film online and mirror it on to my tv
-
Encode QT to MPEG-1 with audio - how/where to set output frame size?
I'm using the MPEG-1 template in Compressor and wish to encode my source files to MPEG-1 with 352x288 in output resolution. Compressor sets the resolution to 320x240 and it seems I cannot change that. But surely it should be possible? The source is P
-
Error in connecting to AD through jndi
Hi all, I need to connect to AD for performing a search operation on one of the attribute. For this I am using the below code4 String userLogin = "000305"; String query = "sAMAccountName=*"+userLogin; String attribute = "sAMAccountName";
-
When I turn on my powerbook, it starts to power up and then a screen comes up and says "you must restart your computer" it says this in 4 different languages. When I hold the power button down to restart it, the same screen appears and I cannot get a